PZOXTKMY2XASMYOY4VIGP3IEBPO55A4RU4FBZDVRRNTQA32F25ZQC
YLV4W4IIJEWLS72UPGXZAJCDTWN6SJ4UTCYOW7YDSK2DLOUTAFOAC
P55M772YOYQKCH3NKZWRGVFNULQA6K5L3SWC6M52R32QBC4VON5QC
ZCLRDJQVS733WMBOJEPQR7YLZNHVA7HRPXO3XCIOFCQWNGI6PGYQC
R4BVCJBS3A27YSRW6JDKADTQIHNBRKM72OW7EHMEKCCNVHQHWJJAC
CWCOGTXQXEQPK6O4TQFCIPDVMZD7WHOBGMIG2DTSO6BEBFEADZIQC
2OZGXOFLTXALS34QEIQ2F6VT7AUWYK7FVXUUDX66GZT5I7FUNPVAC
useState(initialState: S) {
const setState: UpdaterFn<S> = ((valueOrCallback) => {
if (typeof valueOrCallback === "function") {
this.state = (valueOrCallback as ((s: S) => S))(this.state);
} else {
this.state = valueOrCallback;
}
})
const [batchedSetState, fireBatch] = batchifySetState(setState);
const stateUpdaters = updaterGenerator2<S>(initialState, batchedSetState);