docs: fix the reference code

This commit is contained in:
Jonathan Kelley committed 2022-01-03 13:26:15 -05:00
1 parent c34043f1c8
commit 3de776c42a
8 files changed
+300 -85

No files matched your search

+1 -1
View File
@@ -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 {