We will learn how to better separate the code in the entry point to prepare it for adding the router. Currently, in the index.js, we configure the store and bootstrap our App component: import 'babel-polyfill'; import React from 'react'; import { ren…
We will learn how to use store.subscribe() to efficiently persist some of the app’s state to localStorage and restore it after a refresh. To save data in to localStroge, we first create a localStorgejs file and two methods, one for get and one for s…