1. react hooks中useState返回的第二个参数setState执行更改后都发生了什么

2. 能否直接赋值更改存于memorizedState的state,对象{}和原始类型会有区别吗?
评论