Created
February 13, 2015 01:43
-
-
Save jackcallister/a80f4cbd250e158a1c05 to your computer and use it in GitHub Desktop.
React Object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = { | |
Children: { | |
map: ReactChildren.map, | |
forEach: ReactChildren.forEach, | |
count: ReactChildren.count, | |
only: onlyChild | |
}, | |
Component: ReactComponent, | |
DOM: ReactDOM, | |
PropTypes: ReactPropTypes, | |
initializeTouchEvents: function(shouldUseTouch) { | |
EventPluginUtils.useTouchEvents = shouldUseTouch; | |
}, | |
createClass: ReactClass.createClass, | |
createElement: createElement, | |
createFactory: createFactory, | |
createMixin: function(mixin) { | |
// Currently a noop. Will be used to validate and trace mixins. | |
return mixin; | |
}, | |
constructAndRenderComponent: ReactMount.constructAndRenderComponent, | |
constructAndRenderComponentByID: ReactMount.constructAndRenderComponentByID, | |
findDOMNode: findDOMNode, | |
render: render, | |
renderToString: ReactServerRendering.renderToString, | |
renderToStaticMarkup: ReactServerRendering.renderToStaticMarkup, | |
unmountComponentAtNode: ReactMount.unmountComponentAtNode, | |
isValidElement: ReactElement.isValidElement, | |
withContext: ReactContext.withContext, | |
// Hook for JSX spread, don't use this for anything else. | |
__spread: assign | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment