马老师多线程与高并发编程
2022-10-26 20:39 作者:janet19961217 | 我要投稿
function Component(props, context, updater) {
this.props = props;
this.context = context;
this.refs = emptyObject;
this.updater = updater || ReactNoopUpdateQueue;}Component.prototype.isReactComponent = {};Component.prototype.setState = function(partialState, callback) {
this.updater.enqueueSetState(this, partialState, callback, 'setState'); // ??? enqueueSetState };