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

Function Component

lib/assets/react-source/development/react.js:819–827  ·  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

817
818
819 function Component(props, context, updater) {
820 this.props = props;
821 this.context = context; // If a component has string refs, we will assign a different object later.
822
823 this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
824 // renderer.
825
826 this.updater = updater || ReactNoopUpdateQueue;
827 }
828
829 Component.prototype.isReactComponent = {};
830 /**

Callers 1

renderWithHooksFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected