-
Easy react. Includes:
-
The createElement Function
-
The render Function
-
Concurrent Mode
-
Fibers
-
Render and Commit Phases
-
Reconciliation
-
Function Components
-
Hooks
-
-
We didn’t include a lot of React features and optimizations. For example, these are a few things that React does differently:
- In Didact, we are walking the whole tree during the render phase. React instead follows some hints and heuristics to skip entire sub-trees where nothing changed.
- We are also walking the whole tree in the commit phase. React keeps a linked list with just the fibers that have effects and only visit those fibers.
- Every time we build a new work in progress tree, we create new objects for each fiber. React recycles the fibers from the previous trees.
- When Didact receives a new update during the render phase, it throws away the work in progress tree and starts again from the root. React tags each update with an expiration timestamp and uses it to decide which update has a higher priority.
- And many more…
-
Notifications
You must be signed in to change notification settings - Fork 0
HPluseven/build-your-own-react
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published