Common hooks for Dioxus
This crate includes some basic useful hooks for dioxus:
- use_state
- use_ref
- use_future
- use_coroutine
use_state
The primary mechanism of stored state.
You can always use it "normally" with the split
method:
// Rusty-smart-pointer usage:
let value = use_state;
// "Classic" usage:
let = use_state.split;