
- It requires the basic React modules and also our next file to create the app.js file where we will put the code for our React app.
- We require ‘ babel-core ‘ module so we can compile React code (note the presets parameter : ‘ react ‘).
- Alternatively you can use ‘ npm run build ‘ as we have this line of code in the package.json file
- Making 2 different files will also help while rendering the file on the server site as we will work directly with the app.js file
- // REACT (for SEO) var React = require(‘react’); var ReactDOMServer = require(‘react-dom/server’);

@ReactiveConf: “Build an SEO friendly website with #ReactJS:” open tweet »