介绍

跟着 《build-your-own-react》 学习 react 原理。

从头开始一步一步的重写 React,遵循真正的 React 代码的架构,但没有所有的优化和非必要的功能。

本系列基于 React 16.8,所以可以使用 hooks 并且放弃一些与类相关的代码。

从头开始,我们将依次实现 React 的以下特性:

  • createElement 函数
  • render 函数
  • Concurrent 模式
  • Fibers
  • Render and Commit Phases
  • Reconciliation
  • Function Components
  • Hooks