react-sys

Crates.ioreact-sys
lib.rsreact-sys
version1.0.0-alpha.23
sourcesrc
created_at2021-11-06 10:29:01.768911
updated_at2022-02-22 13:42:20.65331
descriptionReact bindings for rust
homepagehttps://github.com/frender-rs/react-sys
repositoryhttps://github.com/frender-rs/react-sys
max_upload_size
id477623
size29,406
(EqualMa)

documentation

README

react-sys

Crates.io docs.rs GitHub license GitHub stars

Rust bindings for React.

Install

Cargo.toml

react-sys = "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.useEffect unsafe

    • React.useContext

    • useLayoutEffect

    • Can we implement the following hooks in rust ?

      • React.useMemo

      • React.useCallback

        Maybe we should implement a use_closure hook 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.Element cast between js and rust wasm
    • jsx like syntax to create element
Commit count: 5

cargo fmt