Open hmu332233 opened 3 years ago
id와 form 키워드를 사용하는 방법
<form id="my-form" onSubmit={handleSubmit}>
{/* awesome form */}
</form>
<button type="submit" form="my-form">Submit</button>
handleSumbit(e) {
const formData = new FormData(e.target);
// Object.fromEntries(formData); json object로 변환
}
Search Keyword form, object