August 2017
Beginner
374 pages
10h 41m
English
Now, we create the src/store/index.js file, which will load the correct store depending on the value of the NODE_ENV environment variable we injected earlier:
if (process.env.NODE_ENV === 'production') { module.exports = require('./index.prod')} else { module.exports = require('./index.dev')}
Read now
Unlock full access