Skip to Content
풀스택 서버리스: 리액트, AWS, 그래프QL을 이용한 최신 애플리케이션 개발
book

풀스택 서버리스: 리액트, AWS, 그래프QL을 이용한 최신 애플리케이션 개발

by 김범준, 네이더 다빗
July 2021
Beginner to intermediate
216 pages
4h 26m
Korean
Hanbit Media, Inc.
Content preview from 풀스택 서버리스: 리액트, AWS, 그래프QL을 이용한 최신 애플리케이션 개발
105
5
사용자 정의 인증 전략
5.2.5
ForgotPasswordSubmit
컴포넌트
ForgotPasswordSubmit
컴포넌트는 양식 상태 (
formState
)를 업데이트하는
updateFormState
함수와 [
Save
new
password
] 클릭 시 호출할
forgotPasswordSubmit
함수를
props
로 전달받
습니다.
/* src/ForgotPasswordSubmit.js */
import React from 'react'
import Button from './Button'
import { styles } from './Form'
function ForgotPasswordSubmit(props) {
return (
<div style={styles.container}>
<input
name='confirmationCode'
placeholder='Confirmation code'
onChange={e => {e.persist();props.updateFormState(e)}}
style={styles.input}
/>
<input
name='password'
placeholder='New password'
type='password'
onChange={e => {e.persist();props.updateFormState(e)}} ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

실전 시계열 분석: 통계와 머신러닝을 활용한 예측 기법

실전 시계열 분석: 통계와 머신러닝을 활용한 예측 기법

박찬성, 에일린 닐슨

Publisher Resources

ISBN: 9791162244487