component | R Documentation |
Create a React component
component(name, varArgs = list())
name |
Name of the React component, which must start with an upper-case character. |
varArgs |
Attributes and children of the element to pass along to
|
An htmltools tag
object
component("ParentComponent",
list(
x = 1,
y = 2,
component("ChildComponent"),
component("OtherChildComponent")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.