react/
lib.rs

1// mod use_closure;
2mod take_rc;
3// mod use_closure;
4mod any_fn_family;
5mod common_props;
6mod component;
7mod element;
8mod fragment;
9mod into_boxed;
10mod into_prop_value;
11mod key;
12mod node;
13mod render_into_dom;
14mod safe_into_js;
15mod strict_mode;
16mod use_effect;
17mod use_memo;
18mod use_ref;
19mod use_state;
20
21pub use any_fn_family::*;
22pub use common_props::*;
23pub use component::*;
24pub use element::*;
25pub use fragment::*;
26pub use into_boxed::*;
27pub use into_prop_value::*;
28pub use key::*;
29pub use node::*;
30pub use render_into_dom::*;
31pub use safe_into_js::*;
32pub use strict_mode::*;
33pub use take_rc::*;
34pub use use_effect::*;
35pub use use_memo::*;
36pub use use_ref::*;
37pub use use_state::*;
38
39pub mod __private;
40pub mod any_js_props;
41pub mod event;
42
43pub use react_sys as sys;
44
45/// A shorthand to create tuple of react children.
46///
47/// If there is no children nodes, then it will be interpreted as `()`.
48///
49/// If there is only one expression, then it will be interpreted as
50/// the value it self (not wrapped in a single element tuple).
51///
52/// If there are multiple expressions separated by `,`,
53/// then it represents a tuple of these expressions.
54///
55/// Note that if a tuple contains more than 17 elements,
56/// then `react::Node` is NOT implemented for it!
57#[macro_export]
58macro_rules! children {
59    () => {()};
60    ($($e:expr),+ $(,)?) => {
61        (
62            $($e),*
63        )
64    };
65}
66
67mod js_props_bridge;
68pub(crate) use js_props_bridge::*;