这个就是脑子卡壳了没答出来….

    setState之后不通过callback形式,如何直接拿到更新后的值 - 图1

    其实就是用 componentDidUpdate 或者 hooksuseEffect