MCPcopy Create free account
hub / github.com/microsoft/SandDance / PureComponent

Function PureComponent

docs/external/js/react.development.js:615–621  ·  view source on GitHub ↗

* Convenience component with default shallow equality check for sCU.

(props, context, updater)

Source from the content-addressed store, hash-verified

613 */
614
615 function PureComponent(props, context, updater) {
616 this.props = props;
617 this.context = context; // If a component has string refs, we will assign a different object later.
618
619 this.refs = emptyObject;
620 this.updater = updater || ReactNoopUpdateQueue;
621 }
622
623 var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
624 pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected