Skip to content

YanMr/myReact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

实现功能

  • jsx
  • creactElement
  • render
  • Concurrent
  • fibers
  • commit
  • reconciliation
  • 函数组件
  • Hooks
  • class

手写react

文件中有详细的注释介绍,每一步的实现方式!

项目结构

├── README.md
├── build --------------------------------------- 打包输出
├── public -------------------------------------- 对外部署的静态资源,包括 index.html 等
├── src ----------------------------------------- 源码
│   ├── App.js ---------------------------------- class写法组件文件
│   ├── index ----------------------------------- Hooks 写法组件
│   ├── myreact
│   │   └── index.ts ---------------------------- reactSimple源码文件

About

手写一个简易版react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published