1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
use wasm_bindgen::prelude::*;
use super::macro_helpers::define_react_use_ref_helpers;
define_react_use_ref_helpers! {
{
value: usize,
object: MutableRefObjectUsize,
use_ref_usize,
use_ref_usize_with,
},
{
value: Option<usize>,
object: MutableRefObjectOptionalUsize,
use_ref_optional_usize,
use_ref_optional_usize_with,
},
{
value: bool,
object: MutableRefObjectBool,
use_ref_bool,
use_ref_bool_with,
},
{
value: web_sys::HtmlElement,
object: MutableRefObjectHtmlElement,
use_ref_html_element,
use_ref_html_element_with,
},
{
value: Option<web_sys::HtmlElement>,
object: MutableRefObjectOptionalHtmlElement,
use_ref_optional_html_element,
use_ref_optional_html_element_with,
},
}