Merge pull request #185 from p-ho/add_jsx_react

JSX.js added (thanks p-ho)
This commit is contained in:
Mike Donaghy
2015-05-22 18:32:27 -04:00

12
j/jsx.js Normal file
View File

@@ -0,0 +1,12 @@
var React = require('react');
var HelloWorld = React.createClass({
displayName: 'HelloWorld',
render: function() {
return (
<span>Hello World</span>
);
}
});
console.log(React.renderToString(<HelloWorld />));