redux-thunkster:Redux的观察者中间件ware

时间:2021-05-08 23:31:56
【文件属性】:
文件名称:redux-thunkster:Redux的观察者中间件ware
文件大小:234KB
文件格式:ZIP
更新时间:2021-05-08 23:31:56
observer redux-middleware JavaScript 雷德克斯·唐克斯特(Redux Thunkster) :telescope: · Redux中间件,用于观察动作并根据观察到的内容调度新动作。 安装方式 npm install --save thunkster 用法 const { createStore , applyMiddleware } = require ( 'redux' ) ; const thunkster = require ( 'thunkster' ) ; // Sample root reducer const reducer = ( state = { } , action ) => { return { ... state , ... action . payload , } ; } ; // Create Redux store const store = createStore ( reducer
【文件预览】:
redux-thunkster-master
----.eslintrc(247B)
----webpack.config.js(566B)
----src()
--------thunkster.js(472B)
--------thunkster.spec.js(2KB)
----.babelrc(25B)
----.npmignore(56B)
----examples()
--------real-world()
----.prettierrc(52B)
----LICENCE(1KB)
----README.md(3KB)
----.gitignore(1KB)
----.eslintignore(132B)
----package-lock.json(363KB)
----package.json(2KB)

网友评论