react input state
-
React input 상태관리 실시간 패스워드 체크하기Programming/React 2020. 5. 8. 11:00
velopert님의 React 인강을 보고 React input 상태관리에 대해 복습하는 의미에서 연습삼아 간단한 실시간 패스워드 체크해보는 것을 만들어보았다. 우선 프로젝트는 npx create-react-app으로 간단하게 실습환경을 구성하였다. 프로젝트 파일 구조 프로젝트 소스 파일 index.js 와 App.js 내용은 생략하도록 하겠다. JoinForm.js import React, { Component } from 'react'; class JoinForm extends Component { state = { name: '', firstPassword: '', lastPassword: '', checkPassword: '📝패스워드 입력📝', }; //input onChange 이벤트 handl..