Experiment to study react-like virtual-dom rendering implementation.
npm install @hiogawa/tiny-reactExperiment to study react-like virtual-dom rendering implementation.
Internal architecture is inspired by yew
- client side rendering
- functional component
- hooks
- jsx-runtime (similar typescript DX as react)
- hmr (via tiny-refresh)
- ssr
- server component and client reference
- context https://github.com/hi-ogawa/js-utils/pull/151
- suspense
- error boundary
- forwardRef
- portal
- dangerouslySetInnerHTML
- mutable ref
- defaultValue
- onChange
- svg
- ...
See example app in ./examples/basic
- https://tiny-react-hiro18181.vercel.app
- https://github.com/preactjs/preact
- https://github.com/snabbdom/snabbdom
- https://github.com/yewstack/yew
- https://github.com/DioxusLabs/dioxus