-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathReact.Rd
More file actions
35 lines (35 loc) · 972 Bytes
/
React.Rd
File metadata and controls
35 lines (35 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reacttools.R
\docType{data}
\name{React}
\alias{React}
\title{React component builder.}
\format{
An object of class \code{react_component_builder} of length 0.
}
\usage{
React
}
\description{
\code{React} is a syntactically-convenient way to create instances of React
components that can be sent to the browser for display. It is a list for
which \link[=InternalMethods]{extract methods} are defined, allowing
object creation syntax like \code{React$MyComponent(x = 1)} where
\code{MyComponent} is a React component you have exposed to Shiny in
JavaScript.
}
\details{
Internally, the \code{\link{component}} function is used to create the
component instance.
}
\examples{
# Create an instance of ParentComponent with two children,
# ChildComponent and OtherChildComponent.
React$ParentComponent(
x = 1,
y = 2,
React$ChildComponent(),
React$OtherChildComponent()
)
}
\keyword{datasets}