- integrate subscription service into context.
- Update documentation
This commit is contained in:
Jonathan Kelley committed 2021-02-08 16:57:34 -05:00
1 parent ee23ea6c3a
commit 204f0d9f16
13 files changed
+416 -358

No files matched your search

+4 -2
View File
@@ -1,6 +1,6 @@
# Hello, World!
Dioxus should look and feel just like writing functional React components. In Dioxus, there are no class components with lifecycles. All state management is done via hooks. This encourages logic resusability and lessens the burden on Dioxus to maintain a non-breaking lifecycle API.
Dioxus should look and feel just like writing functional React components. In Dioxus, there are no class components with lifecycles. All state management is done via hooks. This encourages logic reusability and lessens the burden on Dioxus to maintain a non-breaking lifecycle API.
```rust
#[derive(Properties, PartialEq)]
@@ -9,7 +9,9 @@ struct MyProps {
}
fn Example(ctx: Context<MyProps>) -> VNode {
html! { <div> "Hello {ctx.props().name}!" </div> }
ctx.view(html! {
<div> "Hello {ctx.props().name}!" </div>
})
}
```