GithubHelp home page GithubHelp logo

cy-biggray / reactnote Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buptlhuanyu/reactnote

0.0 0.0 0.0 2 MB

React相关库的源码分析

License: GNU General Public License v3.0

JavaScript 97.97% CoffeeScript 0.88% TypeScript 1.11% HTML 0.03%

reactnote's Introduction

🔥🔥🔥对react相关代码库以及框架的源码进行了一定的分析

ToDo

  • react
    • shared 整个项目通用代码
    • react 核心代码,react定义、reactElement类型对象的构建过程、ReactChildren对react树的操作原理等等
    • react-is 梳理react框架中两大类型:ReactElement以及Portal类型。梳理React.memo,Ref等类型的构建成ReactElementd的过程
    • scheduler 规划 React 初始化,更新等等
    • react-reconciler React调度器
      • 到期时间是如何确定的,调度器时间以及渲染器时间与更新动作的关系
      • context的实现机制
      • ...
    • react-dom DOM渲染
    • events 合成事件系统
    • 各类型组件的运行机制
  • react-router4各个API的使用与源码分析
  • react-transition-group
    • 基本组件:Transition组件分析,结合生命周期详细分析该组件实现动画的原理
    • TransitionGroup组件:对children中Transition或者CSSTransition组件的动画的管理
  • redux-saga:管理react副作用,尽可能使组件为纯函数

📖react16.6

View contents
源码实例分析:可见runlogic文件夹下的代码,断点分析(console.log不是一快照的方式打印结果,对引用对象的调试会不和预期)react对不同组件的处理逻辑等等运行机制
🍺D1 项目目录
🍺D2 shared
🍺D3 react
🍺D4 react-is
梳理react中的类型,两大类型的构建过程
🍺D5 scheduler
scheduler调度器原理,大致基本流程已给出图示,以后再给出更详细具体的调度解析,其实知道了设计**,往后的内容都基本没问题了。
tracing及其TracingSubscriptions实现的是一个订阅监听者设计模式,暂时不对其总结
🍺D6 react-reconciler
react-reconciler源码分析,直接记在我的有道云笔记中,之后会整理成md文件

📖react-router

View contents
🍺D1

📖react-transition-group

View contents
🍺D1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.