일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- react-hook-form
- gitignore
- xlsx
- signIn
- 가상 DOM
- AWS
- node
- Route53
- 프로그래머스
- axios
- window.postMessage
- icrawler
- domtoimage
- JavaScript
- timeinput
- cognito
- readableStream
- electron-builder
- react DOM
- API Gateway
- yml
- zerocho
- TypeScript
- react
- react-xml-parser
- jimp
- dynamodb
- electron
- react-sortable-hoc
- react-admin
Archives
- Today
- Total
목록react-hook-form (1)
꾸준히 공부하는 개발자
[React] react-hook-form 사용기
SignUp.js import React, {useState} from 'react' import {useDispatch} from "react-redux" import {useForm} from "react-hook-form" import {signUp} from "../../actions/users" const SignUp = () => { const {register, handleSubmit, errors} = useForm() const handleLogin = async values => { console.log(values) try{ await dispatch(signUp(values)) alert('회원가입이 완료되었습니다..') history.push('/') }catch(err){ ale..
React
2020. 3. 17. 22:10