I think you need to use pasta. Otherwise, nesting will not work as expected.
div(p('hi'),p('what up'),p(HTML(paste0('This is my ',a(href = 'https://stackoverflow.com/', 'favorite link ever'),'!'))))
Result:
<div> <p>hi</p> <p>what up</p> <p>This is my <a href="https://stackoverflow.com/">favorite link ever</a>!</p> </div>
You do not want all of them to be on the same line.
From the help: Named arguments become attributes, and positional arguments become children.
It would be more difficult to have positional arguments, and sometimes not be children; and probably won't be as simple, flexible, and powerful as just creating it.
source share