Answers for "redux thunk"

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

Browse Popular Code Answers by Language