Create a React component
component(name, varArgs = list())
An htmltools tag object
tag
Name of the React component, which must start with an upper-case character.
Attributes and children of the element to pass along to tag as varArgs.
varArgs
component("ParentComponent", list( x = 1, y = 2, component("ChildComponent"), component("OtherChildComponent") ) )
Run the code above in your browser using DataLab