asProps: Parse arguments as props

View source: R/react.R

asPropsR Documentation

Parse arguments as props

Description

Converts arguments to a list which can be passed as the props argument to reactElement(). Unnamed arguments become children and named arguments become attributes for the element.

Usage

asProps(...)

Arguments

...

Arguments to prepare for passing as props to a 'React' component

Value

A list of the arguments structured suitably for reactElement().

See Also

reactElement


shiny.react documentation built on Dec. 28, 2022, 3:07 a.m.