react-sys 1.0.0-alpha.23

React bindings for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use wasm_bindgen::prelude::*;

crate::macro_import::wasm_bindgen_helpers! {
    #[wasm_bindgen(js_name = create_fragment)]
    pub fn create_fragment_no_props() -> crate::Element;

    #[wasm_bindgen(js_name = create_fragment)]
    pub fn create_fragment_no_children(props: &JsValue) -> crate::Element;

    #[wasm_bindgen(variadic)]
    pub fn create_fragment(
        props: &JsValue,
        children: &js_sys::Array,
    ) -> crate::Element;
}