chore: rename ctx to cx

This commit is contained in:
Jonathan Kelley committed 2021-06-25 21:15:33 -04:00
1 parent 23c14078bb
commit 81382e7044
99 files changed
+789 -664

No files matched your search

+2 -2
View File
@@ -8,8 +8,8 @@ Dioxus-webview is an attempt at making a simpler "Tauri" where creating desktop
// main.rs
#[async_std::main]
async fn main() {
dioxus_webview::new(|ctx| {
let (count, set_count) = use_state(&ctx, || 0);
dioxus_webview::new(|cx| {
let (count, set_count) = use_state(&cx, || 0);
html! {
<div>
<h1> "Dioxus Desktop Demo" </h1>