Recursive components allowed

This commit is contained in:
Greg Johnston 2022-12-23 17:00:52 -05:00
parent a4740d6c06
commit 48e1d6cfab
1 changed files with 2 additions and 2 deletions

View File

@ -92,11 +92,11 @@ pub fn Comment(cx: Scope, comment: api::Comment) -> impl IntoView {
let comments = comment.comments.clone();
move || view! { cx,
<ul class="comment-children">
/* <For
<For
each=move || comments.clone()
key=|comment| comment.id
view=move |comment: api::Comment| view! { cx, <Comment comment /> }
/> */
/>
</ul>
}
})}