Skip to content

Commit cd880c1

Browse files
committed
feat: React.useRef<Option<usize>>
1 parent ad33786 commit cd880c1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Rust bindings for `React`.
1212
`Cargo.toml`
1313

1414
```toml
15-
react-sys = "1.0.0-alpha.7"
15+
react-sys = "1.0.0-alpha.8"
1616
```
1717

1818
Though the version is at `1.x-alpha`,

src/use_ref/helpers.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ define_react_use_ref_helpers! {
99
use_ref_usize,
1010
use_ref_usize_with,
1111
},
12+
{
13+
value: Option<usize>,
14+
object: MutableRefObjectOptionalUsize,
15+
use_ref_optional_usize,
16+
use_ref_optional_usize_with,
17+
},
1218
{
1319
value: bool,
1420
object: MutableRefObjectBool,

0 commit comments

Comments
 (0)