What is the the wasm-react
equivalent of <></>
?
#14
-
How to do something like this? <>
<p>1</p>
<p>2</p>
</> without wrapping it in a div? |
Beta Was this translation helpful? Give feedback.
Answered by
yishn
Nov 30, 2023
Replies: 1 comment
-
You can use a tuple: let vnode: VNode = (
h!(p).build(1),
h!(p).build(2)
).into(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ChocolateLoverRaj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use a tuple: