摘要: for useState(), see: https://www.freecodecamp.org/news/usestate-vs-redux-state-management/ 另外请记住,更新state是asynchronous的,意味着如果刚set了state就读取其值,这个值应该还是old 阅读全文
posted @ 2023-10-09 15:21 saaspeter 阅读(13) 评论(0) 推荐(0) 编辑