Wooo! Your first React component!
Take a look at the code on line 1:
var React = require('react');
This returned object is called the React library.
You've already seen one of the methods in the React library:
React.createElement. Recall that when a JSX element is compiled, it transforms into a
For this reason, you have to require the React library and save it in a variable named
React, before you can use any JSX at all.
React.createElement must be available in order for JSX to work.