* Base class helpers for the updating state of a component.
(props, context, updater)
| 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 | /** |