Add cover image

This commit is contained in:
DefectingCat
2022-10-12 09:53:53 +08:00
parent 30497de6c4
commit 8931cd807d
2 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,14 @@ date: '2022-10-11'
tags: [React, TypeScript]
---
<Image
src="/images/p/react18-new-hooks/react-hooks.jpg"
alt=""
priority
width="811"
height="541"
/>
## useTransition
返回一个状态值表示过渡任务的等待状态,以及一个启动该过渡任务的函数。它和 CSS 的过渡没有任何关系。useTransition 的主要目的是作用于在复杂的过渡任务时提供一个优先级较低的更新,过渡任务中触发的更新会让更紧急地更新先进行,比如点击。

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB