setFormData({})setFormData({}) and I don't want to use setFormData({email: '', password: ''})setFormData({email: '', password: ''}), again why don't I want to do this? what if I change my mind about having only email and password then for clearing form and default value of formData I should make an edit which is not nice), So if is there any way around let me know please, if not I guess I should have a default value in different variable and do something like this :Join the Discord to ask follow-up questions and connect with the community