SoYoung210 / SOSO

👩‍🚀 SOSOLOG
https://so-so.dev/
MIT License
29 stars 4 forks source link

react/form-handling/ #83

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

입력을 다루는 다양한 방법 | SOSOLOG

웹 애플리케이션에서 복잡한 문제 중 하나는 사용자의 입력 데이터를 받아 처리하는 Form입니다. 이 글에서는 Form을 다루는 여러 방법과 대표적 form 라이브러리 중 하나인 react-hook-form에 대해 소개합니다. 간단한 Form Form에서 떠올릴 수 있는 단순한 예시는 Email과 Password를 받는 Login Form이다

https://so-so.dev/react/form-handling/

hg-pyun commented 3 years ago

최근에 많이 고민했던 부분인데 배워갑니다 :)

norux commented 3 years ago

저도 잘 보고가요. 소영님~ ㅎㅎㅎ 잘 정리해주셔서 감사합니다.

hg-pyun commented 3 years ago

오타가 맞는진 모르겠지만 제보해 봅니다. name="이름"->name="전화번호"

<Input name="이름" value={phoneNumber} onChange={setPhoneNumber} />
...
<Input ref={phoneNumberRef} name="이름" />
SoYoung210 commented 2 years ago

@hg-pyun 오타가 있었네요 ㅎㅎ.. 감사합니다!

joonfluence commented 2 years ago

회사에서 리액트 훅 폼으로 Form 개발 많이 했었는데, 어떤 방식으로 input 값들을 control 하는지 몰랐었는데.. 이 글 덕분에 많이 배워가요! 감사합니다 :D

je0ngyun commented 2 years ago

현업에서 react-hook-form 사용하고있는데 많은 도움이 되었습니다 감사합니다!