<!DOCTYPE html> <html> <head> <title>react.js practice</title> <script src="https://fb.me/react-0.13.3.js"></script> <script src="https://fb.me/JSXTransformer-0.13.3.js"></script> </head> <body> <div id="content"></div> <script> var HelloWorld = React.createClass({ render: function() { return ( <p className="hello">Hello!World!</p> ); } }); React.render( <HelloWorld />, document.getElementById('content') ); </script> </body> </html>
consoleを調べてみると15行目(<p className=~~の行)でUncaught SyntaxError: Unexpected token < とエラーが出ます。scriptタグにtype = "text/babel"などを足しても結果が同じです。何が違うのでしょうか??
こちら(https://teratail.com/questions/67053)も同じ質問に見えますが、解決したのでしょうか?