To ensure that Shiny inputs/outputs work when rendered by React, we use ShinyBindingWrapper. Unfortunately it adds an additional wrapper div into the rendered HTML, which makes it harder to read and can affect layout/styling.
The following snippet will render "Hi" and "there!" on separate lines. If we replace shiny.react:::ReactContext with tagList, both words will appear on one line.
Problem
To ensure that Shiny inputs/outputs work when rendered by React, we use
ShinyBindingWrapper
. Unfortunately it adds an additional wrapperdiv
into the rendered HTML, which makes it harder to read and can affect layout/styling.The following snippet will render "Hi" and "there!" on separate lines. If we replace
shiny.react:::ReactContext
withtagList
, both words will appear on one line.A similar issue can be observed for
textOutput()
:Solution
It is possible to avoid the wrapper
div
; a preliminary solution is available onwith-shiny-bindings
branch.