출처: https://velog.io/@jengyoung/%EC%97%AC%EB%9F%AC-%EA%B0%9C%EC%9D%98-input%EC%9D%B4-%EC%9E%88%EC%9D%84-%EB%95%8C-useState%EB%A5%BC-%EC%82%AC%EC%9A%A9%ED%95%9C%EB%8B%A4%EB%A9%B4 import React, { useState } from 'react' const EventPractice = () => { const [form, setForm] = useState({ username: '', message: '' }) const {username, message} = form; const onChange = e => { const nextForm = { ...form, ..