본문 바로가기
TIL

[TIL] 2021. 09. 09.

by 박헹구 2021. 9. 9.
반응형

요즘 계속 피곤하다 ~

 

오늘은 폼양식을 어떻게 더 효율적으로 

조금 더 간단한 코드를 만들 수 있나에 대해서 알아보았다. 

따로  useInput을 만들어서 빼고 

다시 적용시키는게 처음해보는거라 조금 어려웠지만 재미있었다.

 

또한 유효성 검사에 대해서도 알아보았는데 

https://formik.org/

 

Formik

React hooks and components for hassle-free form validation. The world's leading companies use Formik to build forms and surveys in React and React Native.

formik.org

https://academind.com/tutorials/reactjs-a-custom-useform-hook

 

Creating a Custom useForm Hook

Handling forms can always be a bit tricky in React apps. Let's build a custom React Hook that makes handling forms and form validation easier!

academind.com

우선 formik에는 내가 알아본 방법보다 더 다양한 방법이 많아서 참고하기 좋을 것 같았다. 

세상에 이렇게 다양한 방법이 많다니

역시 파도파도 끝이 없다 . 

 

역시 어렵지만

재미있다 리액트는 

 

반응형

'TIL' 카테고리의 다른 글

[TIL] 2021. 09. 13.  (0) 2021.09.13
[TIL] 2021. 09. 10.  (0) 2021.09.11
[TIL] 2021. 09. 08.  (0) 2021.09.09
[TIL] 2021. 09. 07.  (0) 2021.09.07
[TIL] 2021. 09. 06.  (0) 2021.09.07

댓글