7kms/react-illustration-series
7kms/react-illustration-series has 7,909 GitHub stars and 833 forks. GitHot measured 0 stars in 24 hours and -3 in 7 days. Last checked 2026-11-06 18:19 UTC. Last push 2024-03-02.
An illustrated look at React’s source code, using extensive diagrams to clearly explain how React works.
Measured star growth
- in 24h
- 0
- in 7 days
- -3
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original图解 React 源码系列
react源码, 基于[email protected](尽可能跟随 react 版本的升级, 持续更新). 用大量配图的方式, 致力于将react原理表述清楚.
使用指南
- 本系列以 react 核心包结构和运行机制为主线索进行展开. 包括
react 宏观结构,react 工作循环,react 启动模式,react fiber原理,react hook原理,react 合成事件等核心内容. - 开源作品需要社区的净化和参与, 如有表述不清晰或表述错误, 欢迎issue 勘误. 如果对你有帮助, 请不吝 star.
- 本系列最初写作于 2020 年 6 月(当时稳定版本是 v16.13.1), 随着 react 官方的升级, 本 repo 会将主要版本的文章保存在以版本号命名的分支中.
- 当下前端技术圈总体比较浮躁, 各技术平台充斥着不少"标题党". 真正对于技术本身, 不能急于求成, 需要静下心来修炼.
- 本系列不是面经, 但会列举一些面试题来加深对 react 理解.
- 本系列所有内容皆为原创, 如需转载, 请注明出处.
适用读者
- 对
react,react-dom开发 web 应用有实践经验. - 期望深入理解
react内在作用原理.
版本跟踪
本系列暂时只跟踪稳定版本的变动.
react仓库代码改动比较频繁, 在写作过程中, 如果伴随小版本的发布, 文章中的源码链接会以写作当天的最新小版本为基准.
[email protected]作为主版本升级, 相较于 16.x 版本, 在使用层面基本维持不变, 在源码层面需要关注的重大的变动如下重大变动 所属板块 官方解释 重构 Fiber.expirationTime并引入Fiber.lanesreact-reconcilerInitial Lanes implementation #18796 事件代理节点从 document 变成 rootNode, 取消合成事件的缓存池等 legacy-events(被移除),react-dom/eventschanges-to-event-delegation [email protected]相较于主版本v17.0.0做了一个点的优化, 改动了 1 个文件, 修复 ie11 兼容问题, 同时提升 v8 内部的执行性能.
[email protected]相较于v17.0.1, 改动集中于Scheduler包, 主干逻辑没有变动, 只与调度性能统计相关.
主要内容
基本概念
运行核心
- reconciler 运作流程
- 启动过程
- 优先级管理
- scheduler 调度原理
- fiber 树构造(基础准备)
- fiber 树构造(初次创建)
- fiber 树构造(对比更新)
- fiber 树渲染
- 异常处理
数据管理
交互
高频算法
历史版本
Explore related projects
freeCodeCamp/freeCodeCamp
freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.
458,666 starsdonnemartin/system-design-primer
Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
377,115 starsreact/react
The library for web and native user interfaces.
252,217 starsvuejs/vue
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
212,598 stars