For some reason I'm getting Uncaught SyntaxError: Unexpected token (. No matter how simple the code is, I keep getting this error. There are similar questions but none solve this issue.
var Example = React.createClass({ render: function() { return ( <div> <h1> Hello </h1> </div> ); } }); ReactDOM.render( <Example/> , document.getElementById('example')); <!DOCTYPE html> <html> <head> <script src="https://fb.me/react-0.14.2.js"></script> <script src="https://fb.me/react-dom-0.14.2.js"></script> </head> <body> <div id="example"></div> </body> </html>
render: function()