반응형
no error, not working
<input
className="user-input pl-9"
{...register('userId'), {
required: true,
minLength: 4,
maxLength: 30,
}}
placeholder="아이디"
/>
working
<input
className="user-input pl-9"
{...register('userId', {
required: true,
minLength: 4,
maxLength: 30,
})}
placeholder="아이디"
/>
difference
('userId'), -> ('userId',
728x90
반응형
'Library' 카테고리의 다른 글
[redux-persist] WebStorage에 light/dark mode 저장하기 (0) | 2024.02.19 |
---|---|
RTK-query로 게시판 작성 시, formdata를 넘기고 싶은 경우 (0) | 2023.08.11 |
[devextreme] when your areaIndex of PivotGrid doesn't work (0) | 2022.10.27 |
"editor.defaultFormatter": "esbenp.prettier-vscode", value is not accepted (0) | 2022.05.13 |
Tailwind 설정 방법 참고 링크 (0) | 2022.05.10 |