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

+3 -3
View File
@@ -8,9 +8,9 @@ struct MyProps {
name: String
}
fn Example(ctx: Context<MyProps>) -> VNode {
ctx.render(html! {
<div> "Hello {ctx.name}!" </div>
fn Example(cx: Context<MyProps>) -> VNode {
cx.render(html! {
<div> "Hello {cx.name}!" </div>
})
}
```