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