Skip to content

Nested lists of components #436

Answered by sirenkovladd
denartha10 asked this question in Q&A
Discussion options

You must be logged in to vote

I think you need

() => div(nodes.val.map(n => ChildNode({id: n.id, color: n.color, text: n.text}))

also have a look at vanX.list https://vanjs.org/x#reactive-list, it might help prevent rendering

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@denartha10
Comment options

@denartha10
Comment options

Answer selected by denartha10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants