개발 일지
인풋 필드, css inline style 상태 관리 연습
전체 코드 import { useState } from "react"; export default function EditProfile() { const [isEdit, setIsEdit] = useState(true); const [input, setInput] = useState({ firstName: "", lastName: "" }); const handleIsEdit = (e) => { e.preventDefault(); setIsEdit(!isEdit); }; const handleInput = (e) => { setInput({ ...input, [e.target.name]: e.target.value }); }; return ( First name:{" "} {input.firstName}..