Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- aws 정리
- aws
- 시험출제
- SSR
- useactionstate
- 티스토리챌린지
- useformstatus
- useoptimistic
- AWS Cloud Practitioner
- aws clp
- window.location.pathname
- NEXT
- window 객체
- useEffect
- 자격증시험
- react
- 아자아자
- aws 합격
- next15
- NextJS
- 오블완
- useState
- aws 자격증 정리
- CLF-C02
- Use
- window.location.search
- AWS 자격증
- react19
- 의존성
- aws cloud practitioner 요약 정리
Archives
- Today
- Total
목록useactionstate (1)
집중 맞은 도둑력

React 19의 새로운 기능액션 (Actions)React 앱에서 일반적인 사용 사례는 데이터 변형을 수행한 후 상태를 업데이트하는 것입니다. 예를 들어, 사용자가 이름을 변경하기 위해 양식을 제출할 때 API 요청을 하고 응답을 처리합니다. 과거에는 대기 상태, 오류, 낙관적 업데이트 및 순차적 요청을 수동으로 처리해야 했습니다.예를 들어, 대기 상태와 오류 상태를 useState로 처리할 수 있었습니다:// 이전 액션function UpdateName({}) { const [name, setName] = useState(""); const [error, setError] = useState(null); const [isPending, setIsPending] = useState(false); ..
React
2025. 3. 1. 14:22