Relative Content

Tag Archive for javascriptreactjsreact-hooksreact-redux

I am facing issue related to form validation

When I am clicking on submit button error not showing in form validation. But when I am changing any text in input field it’s giving errors. Like if I am not filling fname field and submitting form it’s not showing anything on UI but when I type a single letter than it’s showing error. What is wrong in below code block?

I am facing issue related to form validation

When I am clicking on submit button error not showing in form validation. But when I am changing any text in input field it’s giving errors. Like if I am not filling fname field and submitting form it’s not showing anything on UI but when I type a single letter than it’s showing error. What is wrong in below code block?

how to show textfield or 2 different component in react js?

I have two components in my demo application (Autocomplete and Text Field). I want to show only one component at any given time. The condition is that when the user uses SLASH (/), it will show the Text Field component; otherwise, it will show Autocomplete.