Module prelude

Module prelude 

Source
Expand description

Easy imports for RSX applications

Re-exports§

pub use crate::fragment;
pub use crate::h;
pub use crate::on_click;
pub use crate::on_event;
pub use crate::text;
pub use crate::use_signal;
pub use crate::use_state;
pub use crate::use_state_updater;
pub use crate::use_state_with_updater;
pub use crate::Signal;
pub use crate::UseState;
pub use crate::VNode;

Macros§

rsx
rsx_main
React-style app initialization - like createRoot() but better!

Structs§

Closure
A handle to both a closure in Rust as well as JS closure which will invoke the Rust closure.
JsError
Convenience type for use on exported fn() -> Result<T, JsError> functions, where you wish to throw a JavaScript Error object.
JsValue
Representation of an object owned by JS.

Traits§

JsCast
A trait for checked and unchecked casting between JS types.
UnwrapThrowExt
An extension trait for Option<T> and Result<T, E> for unwrapping the T value, or throwing a JS error if it is not available.

Attribute Macros§

__wasm_bindgen_class_marker
component
Component attribute macro for automatic setup
wasm_bindgen
A list of all the attributes can be found here: https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/index.html