An open API service indexing awesome lists of open source software.

https://github.com/solo-steven/yet-another-react

for study react source code
https://github.com/solo-steven/yet-another-react

implementation react react-dom react-source-code self-learning source-code tutorial

Last synced: 10 months ago
JSON representation

for study react source code

Awesome Lists containing this project

README

          

# Yet-Another-React

this is repo still ongoing.

This repo is used to learn react source code, collect some resources from the community, and build some simple demos to simulate react behavior. The key feature that sets this repo apart from others is that I try to build react incrementally, each folder in the demo folder implements some of the react functionality. Concept from easy to difficult. This repo doesn't teach you to read React source code but tries to introduce the concept of React by examples.

### Prerequest

Most of the React source code is about traversing a Tree, make sure you are familiar with DFS algorithms (especially preorder-traversal) and you can solve some simple problems, here are some examples that should be easy for you to solve. Below are some examples of what you should address.

- https://leetcode.com/problems/same-tree/
- https://leetcode.com/problems/maximum-depth-of-binary-tree/

### Table of Content

- Simple VirtualDOM
- Stack Reconciler
- Task Scheduler
- Event Deletgater ( ongoing )
- Fiber Reconciler ( ongoing )

### Reference Resources

- [Building a Simple Virtual DOM from Scratch - Jason Yu](https://www.youtube.com/watch?v=85gJMUEcnkc)
- [Implement Note](https://zh-hant.reactjs.org/docs/implementation-notes.html)
- [React Source Code](https://github.com/facebook/react)