-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathbasic.html
More file actions
27 lines (25 loc) · 783 Bytes
/
basic.html
File metadata and controls
27 lines (25 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<html>
<head>
<title>Hello World</title>
<link href="lib/bootstrap.css" rel="stylesheet" />
<script src="lib/react.js"></script>
<script src="lib/JSXTransformer.js"></script>
<script type="text/jsx" id="defineRenderSource">
/** @jsx React.DOM */
var UberTag = React.createClass({
render: function() {
return <h3>{this.props.children}</h3>;
}
});
React.renderComponent(
<UberTag>Hello World</UberTag>,
document.getElementById('defineRender')
);
</script>
</head>
<body>
<section class="container">
<div class="result" id="defineRender"></div>
</section>
</body>
</html>