mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-19 23:28:27 +00:00
10 lines
264 B
XML
10 lines
264 B
XML
// mod hooks;
|
|
// pub use hooks::use_context;
|
|
|
|
// pub mod prelude {
|
|
// use dioxus_core::prelude::Context;
|
|
// pub fn use_state<T, G>(ctx: &Context<G>, init: impl Fn() -> T) -> (T, impl Fn(T)) {
|
|
// let g = init();
|
|
// (g, |_| {})
|
|
// }
|
|
// }
|