August 2017
Beginner
374 pages
10h 41m
English
We will start with the development store:
import { createStore, compose } from 'redux'import { persistState } from 'redux-devtools'import appReducer from '../reducers'import DevTools from '../containers/DevTools.jsx'function getSessionKey () { const matches = window.location.href.match(/[?&]debug=([^&#]+)\b/) return (matches && matches.length > 0) ? matches[1] : null}const enhancer = compose( DevTools.instrument(), persistState(getSessionKey()))
Read now
Unlock full access