React
- 1 ответ
- 0 вопросов
1
Вклад в тег
export default function FuncName(){
const [form, setForm] = useState({
name: "", price: "", rating: "", weight: ""
})
onSubmitHandler() {
setForm({
name: "", price: "", rating: "", weight: ""
})
}
render() {
return (
<form onSubmit={onSubmitHandler}>
<...>
</form>
);
}
}
}