April 2018
Intermediate to advanced
298 pages
6h 34m
English
Let's quickly look at the source files that bring everything together to give you a sense of completeness. Let's start with index.js:
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Root from './components/Root';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<Root />, document.getElementById('root'));
registerServiceWorker();
This looks just like most index.js files in create-react-app that you've worked with so far in this book. Instead of rendering an App component, it's rendering a Root component. Let's look at this next:
import React from 'react'; import { Provider } from 'react-redux'; import App from './App'; import store from '../store'; ...