Recent Posts
Tags
- webrtc
- useTransition
- mock-service-worker
- readonly
- dvh
- queryfactory
- Mapped type
- fsd-architecture
- mutationoptions
- tanstack-query
- queryoptions
- HTTP
- react-hook
- React
- type-challenges
- tanstack-router
- Viewport
- Typescript
- webrtc #ice #stun #turn
- LVH
- svh
- fsd
- msw2.0
- MSW
- startTransition
- type-challenges-easy
- SDP
- vh
- Vite
- websocket
Archives
- Today
- Total
목록react-hook (1)
개발자 메론빵
[React Hook] useTransition
❓TransitionUI에서 중요도가 낮은 작업을 백그라운드에서 처리하는 것📌useTransition?React 18에서 도입된 훅으로 UI 업데이트를 트랜지션으로 처리하여 사용자 경험을 개선하는 데 사용된다. 비동기 작업이나 시간이 오래 걸리는 상태 업데이트를 처리할 때 유용하다.📌useTransition 사용 방법const [isPending, startTransition] = useTransition();useTransiton을 사용해 상태 업데이트를 낮은 우선 순위로 처리할 수 있다.useTransition은 매개변수를 받지 않는다.useTransition 훅은 isPending과 startTransition을 반환한다.isPending : 트랜지션 진행 중 여부 (boolean)startTr..
React
2024. 8. 1. 10:42