I have a helloworld.jsx file built successfully into a js file and is included in a page through the script tag.
When I run the page in Chrome, I get the following error. Should I include any other Bower package to use require.
Uncaught ReferenceError: require is not defined
var React = require('react');
var HelloWorld = React.createClass({displayName: "HelloWorld",
render: function () {
return (React.createElement("h1", null, "Hello World"));
}
});
var parent = document.querySelector('#greeting');
React.renderComponent(React.createElement(HelloWord, null), parent);