Reset from after submitting
This commit is contained in:
@@ -37,6 +37,12 @@ export default function AuthForm({
|
|||||||
const handleFormSubmit = async e => {
|
const handleFormSubmit = async e => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
onSubmit(formData)
|
onSubmit(formData)
|
||||||
|
setFormData({
|
||||||
|
first_name: '',
|
||||||
|
email: '',
|
||||||
|
password: '',
|
||||||
|
password_verification: ''
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleInputChange = e => {
|
const handleInputChange = e => {
|
||||||
|
|||||||
Reference in New Issue
Block a user