mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
Add cover image
This commit is contained in:
@ -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 的主要目的是作用于在复杂的过渡任务时提供一个优先级较低的更新,过渡任务中触发的更新会让更紧急地更新先进行,比如点击。
|
||||
|
BIN
public/images/p/react18-new-hooks/react-hooks.jpg
Normal file
BIN
public/images/p/react18-new-hooks/react-hooks.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 153 KiB |
Reference in New Issue
Block a user