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