| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 31 | 
													Tags
													
											
												
												- async/await
- dfs
- 호이스팅
- webpack
- 공변성
- 타입 좁히기
- 반공변성
- 인터섹션
- useAppDispatch
- 리터럴 타입
- Jest
- tailwind
- 투포인터
- TS
- app router
- 인증/인가
- CORS
- CI/CD
- recoil
- map
- 무한 스크롤
- Promise
- 결정 알고리즘
- autosize
- RTK Query
- 태그된 유니온
- React
- ESlint
- SSR
- MSA
													Archives
													
											
												
												- Today
- Total
목록useFormStatus (1)
짧은코딩
			
			
				useFormState와 useFormStatus
				
	
	
               
           
					
					
					
					
					
					
						
					
				useFormState와 useFormStatus 로그인이나 회원가입 같은 부분에서 Form을 통해 처리를 하곤 한다. 이때 아이디나 비밀번호가 비어있으면 에러 메시지를 알려줘야 한다. 그럴 때 useFormState, useFormStatus를 사용하면 편하다. 하지만 이 기능은 아직 실험적인 기능이긴 하다. useFormState https://react.dev/reference/react-dom/hooks/useFormState useFormState – React The library for web and native user interfaces react.dev -예시 코드 import { useFormState } from "react-dom"; async function increment(p..
				인프런, 유데미/z 클론 코딩
				
				2024. 3. 27. 19:56