Structs§
Enums§
- Read
State - Given a type
Tyou may pass an owned value, aState<T>or a function returning aReadRef<T> - Read
State Cow
Traits§
Functions§
- use_
state - Creates a reactive value initialized with the returned value of the
initcallback that we pass to it. AState<T>is a combination ofRc<RefCell<T>>+Copyand reactive semantics. It allow us to store a value into a reactive pointer and share this to other components to let them read or even write to it.