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

Function Component

docs/external/js/react.development.js:513–521  ·  view source on GitHub ↗

* Base class helpers for the updating state of a component.

(props, context, updater)

Source from the content-addressed store, hash-verified

511
512
513 function Component(props, context, updater) {
514 this.props = props;
515 this.context = context; // If a component has string refs, we will assign a different object later.
516
517 this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
518 // renderer.
519
520 this.updater = updater || ReactNoopUpdateQueue;
521 }
522
523 Component.prototype.isReactComponent = {};
524 /**

Callers 1

renderWithHooksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected