본문 바로가기

개발자 메론빵

검색하기
개발자 메론빵
프로필사진 ddiae

웹/앱 개발 및 수업합니다! 문의는 visveryver2@gmail.com


  • 분류 전체보기 (18)
    • FrontEnd (2)
    • React (5)
    • JavaScript (0)
    • TypeScript (2)
    • WebRTC (4)
    • CSS (1)
    • Dev (2)
    • 수업 (2)
Guestbook
Recent Posts
Tags
  • mock-service-worker
  • type-challenges-easy
  • LVH
  • SDP
  • webrtc #ice #stun #turn
  • tanstack-query
  • Viewport
  • HTTP
  • useTransition
  • fsd
  • webrtc
  • startTransition
  • svh
  • mutationoptions
  • Typescript
  • type-challenges
  • vh
  • readonly
  • MSW
  • dvh
  • msw2.0
  • Vite
  • tanstack-router
  • websocket
  • fsd-architecture
  • react-hook
  • Mapped type
  • React
  • queryoptions
  • queryfactory
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록React (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
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바