#![warn(missing_docs)]
#![doc = include_str!("../README.md")]
#[cfg(doctest)]
#[doc = include_str!("../README.md")]
extern "C" {}
mod builtin_components;
mod callback;
mod component;
mod context;
mod macros;
mod prop_container;
mod vnode;
pub mod hooks;
pub mod props;
#[doc(hidden)]
pub mod react_bindings;
use props::Props;
use wasm_bindgen::prelude::*;
pub use builtin_components::*;
pub use callback::*;
pub use component::*;
pub use context::*;
#[doc(hidden)]
pub use paste::paste;
pub use prop_container::*;
pub use vnode::*;
#[doc(hidden)]
#[wasm_bindgen]
pub struct WasmReact;
#[wasm_bindgen]
impl WasmReact {
#[wasm_bindgen(js_name = useReact)]
pub fn use_react(value: &JsValue) {
react_bindings::use_react(value);
}
}
pub fn create_element(typ: &JsValue, props: &Props, children: VNode) -> VNode {
VNode::Single(react_bindings::create_element(
typ,
props.as_ref(),
&children.into(),
))
}