reactElement | R Documentation |
Creates a shiny.tag
which can be rendered just like other 'Shiny' tags as well as passed in
props to other 'React' elements. Typically returned from a wrapper ("component") function,
which parses its arguments with asProps()
and fills in the other arguments.
reactElement(module, name, props, deps = NULL)
module |
JavaScript module to import the component from. |
name |
Name of the component. |
props |
Props to pass to the component. |
deps |
HTML dependencies to attach. |
A shiny.tag
object representing the 'React' element.
asProps
Component <- function(...) reactElement(
module = "@/module", name = "Component", props = asProps(...)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.