Skip to content

Updating state doesn't reflect in the UI + Feedback on Tutorials #240

Answered by csm-kb
aderchox asked this question in Q&A
Discussion options

You must be logged in to vote

So in the same vein as state-derived children, you could actually just pass

div(
  { class: "tabs-active-content-area" },
  () => tabItems[activeIndex.val].content
)

and function the same way, too. van._() isn't actually needed here!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@csm-kb
Comment options

Answer selected by aderchox
Comment options

You must be logged in to vote
1 reply
@MrVoltz
Comment options

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