I'm having a very simple issue with using React.js on CodePen! I'm new to React, and I'm trying to use the React library on CodePen. It just doesn't appear to be working for some reason, even though I'm also using Babel as the pre-processor.
I feel like this may have something to do with the version I'm using? - 15.3.1
http://codepen.io/anfperez/pen/aBomwp
My code:
var React = require('react');
var ReactDOM = require('react-dom');
var Test = React.CreateClass({
render: function() {
return (
<h2> Yo </h2>
);
}
});
ReactDOM.render(<Test />, getElementById("test"));
Any tips are appreciated.