Re:VanJS: A 0.9KB JavaScript UI framework
by mitt_romney_12 on Wednesday December 20, 2023 @12:53PM
(#38711467)
With JSX you can do
const todo = <DoMoreStuff args={...}><DoEvenMoreStuff args={...}/></DoMoreStuff>;
<DoStuff args={...}>{todo}</DoStuff>
Also with 2 you can do
where as with 1 you cannot.