📜  thunk redux - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:46.438000             🧑  作者: Mango

代码示例4
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