score:4

Accepted answer
const testData = require('./data/thejson.json');

// use testData as the default argument, which will be used if state is undefined (as it will be when the app starts 
function someReducer(state = testData , action) {
  switch (action.type) {
    // some code here.. 
  }
}

score:1

import data from 'path/to/data.json';

score:3

createStore(reducer,  require('your file path')

Related Query

More Query from same tag