JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<script src="//fb.me/react-0.14.3.js"></script>
<script src="//fb.me/react-dom-0.14.3.js"></script>
<title>React JS</title>
<body>
<div id="root"></div>
</body>
Babel + JSX
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
header: "React Js",
"content": "My basic Example"
}
}
render() {
return (
<div>
<h1>{this.state.header}</h1>
<h2>{this.state.content}</h2>
</div>
);
}
}
ReactDOM.render(
<App />,
document.getElementById('root')
);