-
I am trying to migrate JSX <div class="Callout">
Long-form information about the important content. This text is styled
as <a href="#core/typography.running-text">"Running text"</a>, so it
may contain things like headers, links, lists,
<code class="bp4-code">code</code> etc.
</div> Supposed we have Is there a type of node / element without tag, much like Fragment in react ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello have tried HTML to VanJS converter ? Regards |
Beta Was this translation helpful? Give feedback.
-
The most straightforward way in VanJS is to use primitive-valued arguments (string, number, etc.) in tag functions to represent Text node. Thus as @artydev mentioned, the code generated with VanJS converter is pretty idiomatic. That said, the solution mentioned in #21 (reply in thread) also works. VanJS is unopinionated thus you can choose the way you like as long as you have a good understanding of the behavior of the code :-) |
Beta Was this translation helpful? Give feedback.
The most straightforward way in VanJS is to use primitive-valued arguments (string, number, etc.) in tag functions to represent Text node. Thus as @artydev mentioned, the code generated with VanJS converter is pretty idiomatic.
That said, the solution mentioned in #21 (reply in thread) also works. VanJS is unopinionated thus you can choose the way you like as long as you have a good understanding of the behavior of the code :-)