R.ReactCreateClass Class
Method definition that complements React.createClass.
Used to compute an instance of a React component
Item Index
Methods
__ReactOnRailsSurrogate
(
Object
-
context
-
props
-
initialState
Returns an instance of a component by React context, the property and a defined state
Parameters:
-
context
ObjectThe context of the future component
-
props
ObjectThe props of the future component
-
initialState
ObjectThe state of the future component
Returns:
Object:
instance The created component instance
restoreVanillaCreateClass
()
Function to use if you want restore native function of React.createClass