Answers for "thunk redux"

2

thunk redux

npm install --save redux-thunk
Posted by: Guest on April-25-2020
1

redux thunk

import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers/index';

// Note: this API requires redux@>=3.1.0
const store = createStore(rootReducer, applyMiddleware(thunk));
Posted by: Guest on June-10-2021
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 "Shell/Bash"

Browse Popular Code Answers by Language