react-redom
React.createElement wrapper. The purpose of this wrapper is to work without JSX and create elements with a single hash param.
Usage
var r = ; var MyCmp = React; moduleexports = React; // finally this should create the following html snippet :// <div class="class1 class2"><div class="subclass"><span>myValue1</span><span>myValue3</span></div></div>
Documentation
r(component, [properties], [children])
Returns a React element
- component
Function|String|Object
- A React.js Component class or an HTML tag. If it's anObject
the propertiescomponent._type
whould be extracted and considered as component, the propertiescomponent.children
whould be extracted and considered as children, the rest is kept and considered as properties - properties
Object
optional - props of the component - children
Array|Object|String
optional - An array ofObject|String
or anObject|String
which will be passed as single argument of this method