preact 源码阅读 render 浅复制 setState,nextState设置为新的值,并且将callback放到 _stateCallbacks 中 if (this._vnode) { if (callback) { this._stateCallbacks.push(callback); } enqueueRender(this); } debounce方法,保证在多个状态更新时,只触发一次重...
some note, not worth reading.