学习并仿写react
,目前已提供基础功能。
-
- Fiber
- hooks
- useReducer
- useState
-
React15
- Class Component
- LifeCycle
- old
- new
- setState
- syntheticEvent
- LifeCycle
- Function Component
- basic
- createElement
- Children
- map
- flat
- key
- map
- ref
- Class Component
-
ReactDOM
- render
- unstable_batchedUpdates
-
Virtual DOM
- DOM-DIFF
安装
npm i -S @careteen/react
使用方式和react
一样
// TODO
clone仓库并引入依赖
git clone git@github.com:careteenL/react.git
npm install
开始开发:)
...
启动本地服务器编写示例
npm run example