Skip to content

Commit

Permalink
feat: React.useRef<Option<usize>>
Browse files Browse the repository at this point in the history
  • Loading branch information
EqualMa committed Nov 7, 2021
1 parent ad33786 commit cd880c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -12,7 +12,7 @@ Rust bindings for `React`.
`Cargo.toml`

```toml
react-sys = "1.0.0-alpha.7"
react-sys = "1.0.0-alpha.8"
```

Though the version is at `1.x-alpha`,
Expand Down
6 changes: 6 additions & 0 deletions src/use_ref/helpers.rs
Expand Up @@ -9,6 +9,12 @@ define_react_use_ref_helpers! {
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,
Expand Down

0 comments on commit cd880c1

Please sign in to comment.