fix components that take no arguments
This commit is contained in:
1 parent
404c864246
commit
1794debf79
24 files changed
+98
-78
No files matched your search
@@ -134,10 +134,10 @@ fn create_components() {
|
||||
children: Element,
|
||||
}
|
||||
|
||||
fn Child<'a>(cx: Scope<'a, ChildProps<'a>>) -> Element {
|
||||
fn Child<'a>(cx: ChildProps) -> Element {
|
||||
render! {
|
||||
h1 {}
|
||||
div { &cx.props.children }
|
||||
div { &cx.children }
|
||||
p {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user