Full code here: https://gist.github.com/js08/0ec3d70dfda76d7e9fb4
Hi,
in the end of your Index.js need to add this Code:
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import './index.css';
import App from './App';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose, combineReducers } from 'redux';
import thunk from 'redux-thunk';
///its your redux ex
import productReducer from './redux/reducer/admin/product/produt.reducer.js'
const rootReducer = combineReducers({
adminProduct: productReducer
})
const composeEnhancers = window._REDUX_DEVTOOLS_EXTENSION_COMPOSE_ || compose;
const store = createStore(rootReducer, composeEnhancers(applyMiddleware(thunk)));
const app = (
);
ReactDOM.render(app, document.getElementById('root'));