Skip to main content

rue_core/
lib.rs

1pub mod reactive;
2pub mod node;
3pub mod app;
4pub mod component;
5
6// Re-export the most commonly used types
7pub use reactive::{Signal, signal, Computed, computed, Effect, effect};
8pub use node::VNode;
9pub use component::Component;
10pub use app::{App, mount};
11
12/// Initialize the framework (call this at the start of your main).
13pub fn init() {
14    console_error_panic_hook::set_once();
15}
16
17// Re-export JsValue for convenience
18pub use wasm_bindgen::JsValue;