The development branch is the basic branch that contains the true React, while the master branch is completed.
You can learn based on the development branch combined with documentation. If you encounter problems, you can switch to the master branch to view the complete code.
develop 分支是包含了真正的React 的基础分支,master 分支是完成完成。 你可以基于develop 分支结合文档进行学习,如果遇到问题可以切换到 master分支查看完整代码。
This repository goes together with a series of posts that explains how to build React from scratch step by step. You can jump straight to the last post which is self-contained and includes everything.
Blog Post | Code sample | Commits | Other languages |
---|---|---|---|
Introduction | |||
Rendering DOM elements | codepen | diff | 中文 |
Element creation and JSX | codepen | diff | 中文 |
Virtual DOM and reconciliation | codepen | diff diff diff | 中文 |
Components and State | codepen | diff | 中文 |
Fiber: Incremental reconciliation (self-contained post) | codepen | diff diff | 中文 |
The one with Hooks (self-contained post) | codesandbox | 中文 |
Follow @pomber on twitter for updates.
The MIT License (MIT)