Inferno DOM wrapper. (r-dom fork for Inferno).
Usage
var inferno = ;var r = ; var AnotherComponent = ; moduleexports = Component { return r ; };
Documentation
r[tag]([properties], [children])
Returns a React element
- tag
String
- A React.DOM tag string - properties
Object
optional - An object containing the properties you'd like to set on the element. - children
Array|String
optional - An array ofr
children or a string. This will create child elements or a text node, respectively.
r(component, [properties], [children])
Returns a React element
- component
Function
- A React.js Component class created withReact.createClass
- properties
Object
optional - An object containing the properties you'd like to set on the element. - children
Array|String
optional - An array ofr
children or a string. This will create child elements or a text node, respectively.
Special Properties
- isRendered
"Boolean"
optional - If falsy, React will skip rendering the target component. - classSet
Object
optional - Apply classnames and assign to className.