Skip to content

coderzzp/how-redux-works

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction


redux是我们在使用react技术栈时,社区中最主流的数据流解决方案。本repo不会具体讲解redux的技术实现原理(哈哈标题党),因为redux的实现其实没什么特别好讲的,网上一堆文章,redux简单版的实现总代码数不会超过200行,包括store是怎么生成的,中间件的执行机制等等。你甚至可以自己写一个中间件来玩,包括redux-thunk,redux-promise-middleware,redux-logger等等这些中间件都是很简单易懂的。你可以用这个项目里的代码,写一个自己的中间件?或者做一些调试来了解redux的执行过程?whatever image

Installation

git clone https://github.com/coderzzp/how-redux-works.git
npm i 
npm start

然后CRA会帮我们运行项目

About

a project to let you konw how redux works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published