A work-in-progress, toy re-implementation of a subset of React's public API for learning purposes. Originally based on Rodrigo Pombo's Build your own React. It does not aim to be used in production, but rather to explore how virtual dom libraries work under the hood.
-
js-framework-benchmark (copied from react-hooks)
-
Simple cards example
- JSX factory
- Virtual DOM representation similar to React where nodes are processed in units of work (but here workloop is sync for now).
- Splits work in two phases: render and commit.
- Functional components
- Keyed reconciliation
- Memoization primitives
- Hooks:
useState,useEffect,useRef,useMemo,useReducer