MCPcopy Create free account
hub / github.com/reactjs/react-rails / factory

Function factory

lib/assets/react-source/development/react.js:29249–30134  ·  view source on GitHub ↗
(ReactComponent, isValidElement, ReactNoopUpdateQueue)

Source from the content-addressed store, hash-verified

29247 }
29248
29249 function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
29250 /**
29251 * Policies that describe methods in `ReactClassInterface`.
29252 */
29253
29254 var injectedMixins = [];
29255
29256 /**
29257 * Composite components are higher-level components that compose other composite
29258 * or host components.
29259 *
29260 * To create a new type of `ReactClass`, pass a specification of
29261 * your new class to `React.createClass`. The only requirement of your class
29262 * specification is that you implement a `render` method.
29263 *
29264 * var MyComponent = React.createClass({
29265 * render: function() {
29266 * return <div>Hello World</div>;
29267 * }
29268 * });
29269 *
29270 * The class specification supports a specific protocol of methods that have
29271 * special meaning (e.g. `render`). See `ReactClassInterface` for
29272 * more the comprehensive protocol. Any other properties and methods in the
29273 * class specification will be available on the prototype.
29274 *
29275 * @interface ReactClassInterface
29276 * @internal
29277 */
29278 var ReactClassInterface = {
29279 /**
29280 * An array of Mixin objects to include when defining your component.
29281 *
29282 * @type {array}
29283 * @optional
29284 */
29285 mixins: 'DEFINE_MANY',
29286
29287 /**
29288 * An object containing properties and methods that should be defined on
29289 * the component's constructor instead of its prototype (static methods).
29290 *
29291 * @type {object}
29292 * @optional
29293 */
29294 statics: 'DEFINE_MANY',
29295
29296 /**
29297 * Definition of prop types for this component.
29298 *
29299 * @type {object}
29300 * @optional
29301 */
29302 propTypes: 'DEFINE_MANY',
29303
29304 /**
29305 * Definition of context types for this component.
29306 *

Callers 3

react.jsFile · 0.70
react_ujs.jsFile · 0.50
JSXTransformer.jsFile · 0.50

Calls 5

mixSpecIntoComponentFunction · 0.70
validateTypeDefFunction · 0.70
warningFunction · 0.70

Tested by

no test coverage detected