react-sys
Rust bindings for React.
Install
Cargo.toml
= "1.0.0-alpha.11"
Though the version is at 1.x-alpha,
this crate is NOT ready for production
and under heavy development.
This crate is used by frender, which provides a friendly and safe api to use React in rust.
TODO
-
Hooks
-
React.useState -
React.useRef -
React.useEffectunsafe -
React.useContext -
useLayoutEffect -
Can we implement the following hooks in rust ?
-
React.useMemo -
React.useCallbackMaybe we should implement a
use_closurehook in rust.
-
-
Do we need the following hooks in rust ?
-
React.useReducer -
React.useImperativeHandle -
useDebugValue
-
-
-
ErrorBoundary -
React.memo -
Component- html
- functional component with hooks
-
Element-
React.createElement -
React.Elementcast between js and rust wasm -
jsxlike syntax to create element
-