JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React</title>
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.1/normalize.css">
<script src="//fb.me/react-with-addons-0.13.3.js"></script>
</head>
<body>
<div id="container"></div>
</body>
</html>
Babel + JSX
var Hello = React.createClass({
render: function() {
return (
<div>
<h1>Welcome to React</h1>
<input onClick={() => { alert('click!'); } } type="text" disabled />
</div>
);
},
});
React.render(
<Hello name="World" />,
document.getElementById('container')
);