摘要: import { flushSync } from 'react-dom' import { createRoot } from 'react-dom/client' let hookIndex = 0 const states: Array<[any, (newState: any) => voi 阅读全文
posted @ 2024-07-31 14:37 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Refer to https://react.dev/reference/react-dom/flushSync For example, the browser onbeforeprint API allows you to change the page immediately before t 阅读全文
posted @ 2024-07-31 14:25 Zhentiw 阅读(7) 评论(0) 推荐(0) 编辑