Answers for "store with redux-thunk"

0

store with redux-thunk

import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';

const store = createStore(
    rootReducer,
    applyMiddleware(thunk)
);

/*** remember to install redux-thunk: */
npm i redux-thunk --save-dev
Posted by: Guest on March-06-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language