Repository navigation
|
Greatings, I am writing some app with van jsx. I am facing a problem. While a function child returns an array. It won't be rendered. It seems vanjs-core treat the return of the function child as I would like to ask if it would be a good idea to add array-related rendering implementation here ? |
Answered by
Tao-VanJS
Sep 10, 2023
Replies: 2 comments
|
If want to support functions that return array-type components. It will need to do a lot of array comparison work. This may not be conducive to keeping vanjs small in size. |
0 replies
|
You can wrap the result into a pass-through container ( |
0 replies
Answer selected by
Tao-VanJS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


You can wrap the result into a pass-through container (
spanfor inline elements anddivfor block elements) if multiple elements need to be returned.See https://vanjs.org/demo#blog.