Feat: add webview example

This commit is contained in:
Jonathan Kelley committed 2021-01-22 15:50:16 -05:00
1 parent 7730fd4a8c
commit 65d0d611ea
11 files changed
+84 -38

No files matched your search

+5 -5
View File
@@ -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, |_| {})
}
}