docs: fix the reference code
This commit is contained in:
1 parent
c34043f1c8
commit
3de776c42a
8 files changed
+300
-85
No files matched your search
@@ -28,7 +28,7 @@ pub struct MyProps<'a> {
|
||||
children: Element<'a>,
|
||||
}
|
||||
|
||||
pub fn Example1(cx: Scope<MyProps>) -> Element {
|
||||
pub fn Example1<'a>(cx: Scope<'a, MyProps<'a>>) -> Element {
|
||||
let MyProps { count, live, name } = cx.props;
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
|
||||
Reference in new issue
Block a user