Feat: add webview example
This commit is contained in:
1 parent
7730fd4a8c
commit
65d0d611ea
11 files changed
+84
-38
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn it_works() {
|
||||
assert_eq!(2 + 2, 4);
|
||||
pub mod prelude {
|
||||
use dioxus_core::prelude::Context;
|
||||
pub fn use_state<T, G>(ctx: &mut Context<G>, init: impl Fn() -> T) -> (T, impl Fn(T)) {
|
||||
let g = init();
|
||||
(g, |_| {})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user