We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df8b9ed commit d67b329Copy full SHA for d67b329
badge/index.html
@@ -0,0 +1,24 @@
1
+<head>
2
+ <script src="http://fb.me/react-0.13.0.js"></script>
3
+ <script src="http://fb.me/JSXTransformer-0.13.0.js"></script>
4
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
5
+</head>
6
+<body>
7
+</body>
8
+
9
+<script type="text/jsx">
10
+ // Define a `class`
11
+ var Badge = React.createClass({
12
+ render: function() {
13
+ return <button class="btn btn-primary" type="button">
14
+ Messages <span class="badge">4</span>
15
+ </button>
16
+ }
17
+ });
18
19
+ // React, please render this class
20
+ var element = React.createElement(Badge);
21
22
+ // React, after you render this class, please place it in my body tag
23
+ React.render(element, document.body);
24
+</script>
0 commit comments