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.
Value
A list of the arguments structured suitably for reactElement()
.