오늘 한거
const [loginInfo, setloginInfo] = useState({
emailAddress: '',
password: '',
});
const onChange = e => {
//console.log(e.target.name);
setloginInfo({ ...loginInfo, [e.target.name]: e.target.value });
};
<input
name="emailAddress"
value={loginInfo.emailAddress}
className="emailinput"
type="text"
onChange={onChange}
/>
오늘의 한줄