文件名称:redux-tutorial:非常简单的Redux实现,用于学习
文件大小:6KB
文件格式:ZIP
更新时间:2024-05-23 00:38:55
JavaScript
还原教程 用于学习目的的简单Redux实施 开始 克隆此并使用执行: git clone https://github.com/carloluis/redux-tutorial.git cd redux-tutorial node index.js 特征 createStore combineReducers middlewares 例子const { createStore , combineReducers } = require ( './redux' ) ; const reducer = combineReducers ( { reducer1 , reducer2 , /*...*/ reducerN } ) ; const store = createStore ( reducer , INITIAL_STATE ) ; const unsubscribe = st
【文件预览】:
redux-tutorial-master
----.gitignore(35B)
----package.json(599B)
----LICENSE(1KB)
----index.js(1KB)
----README.md(988B)
----redux.js(2KB)
----reducers()
--------counter.reducer.js(457B)
--------toggle.reducer.js(202B)
----middlewares()
--------logger.middleware.js(323B)
----actions()
--------counter.actions.js(522B)
--------toggle.actions.js(144B)
----.editorconfig(240B)