摘要: 原理:通过同步更新 useRef 来获取最新值 // util.ts export const useRefState = (init: any = null) => { const [state, setState] = useState(init); const stateRef = useRe 阅读全文
posted @ 2024-07-03 14:08 SKILL·NULL 阅读(4) 评论(0) 推荐(0) 编辑