|
%!s(int64=3) %!d(string=hai) anos | |
---|---|---|
.. | ||
src | %!s(int64=3) %!d(string=hai) anos | |
CHANGELOG.md | %!s(int64=3) %!d(string=hai) anos | |
Cargo.toml | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos |
This crate includes some basic useful hooks for dioxus:
The primary mechanism of stored state.
You can always use it "normally" with the split
method:
// Rusty-smart-pointer usage:
let value = use_state(&cx, || 10);
// "Classic" usage:
let (value, set_value) = use_state(&cx, || 0).split();