ReactJS is based on the idea that the page can be decomposed into basic components, which are called for rendering parts of the page.
For example, if you want to display a list of runs, you can create a Run class that is in charge of rendering a single run given its values, and a Runs class that iterates through a list of runs, and call the Run class to render each item.
Each class is created with the React.createClass() function, which receives a mapping containing the future class methods. The ;createClass() function generates a new class, and sets ;a props attribute to hold some properties alongside the provided methods.
In the following example, in a new JavaScript file we define a Run class ; with a render() function, ...