📜  react redux 动作必须是普通对象 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:11.754000             🧑  作者: Mango

代码示例1
import thunk from 'redux-thunk'
import { applyMiddleware } from 'redux'

const store = createStore(reducer, initialState, applyMiddleware(thunk))