this is my reducer code check this please it is my final year project
import CHILDREN from '../../data/dummy-data'; const initialState = { availableChilds: CHILDREN, specificChilds: CHILDREN.filter(id => id.registrationId === '1') }; export default (state = initialState, action) => { return state; };
this is my app.js code
import childReducer from './store/reducers/child'; const rootReducer = combineReducers({ childs: childReducer }); const store = createStore(rootReducer);
2.1m questions
2.1m answers
60 comments
57.0k users