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