How to check if email form is valid email if email is valid and user clicked on button it have to render new Component | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

How to check if email form is valid email if email is valid and user clicked on button it have to render new Component

On React Js

13th Jul 2020, 1:32 AM
Abdulaziz Abdurasul
Abdulaziz Abdurasul - avatar
3 Respostas
+ 1
You can use React Hook Form which making form with input validation easier. Here a sample code, for you to study https://code.sololearn.com/WbDE8H1kj1c2/?ref=app https://www.sololearn.com/post/454781/?ref=app https://react-hook-form.com/
13th Jul 2020, 12:49 PM
CalviÕ²
CalviÕ² - avatar
+ 1
Abdulaziz Abdurasul actually you don't need js to do that. HTML 5 have a builtin email validation. Just using <input type="email" > for that!
13th Jul 2020, 1:52 AM
Thį»‘ng Nguyį»…n
Thį»‘ng Nguyį»…n - avatar
+ 1
CalviÕ² Calvin that's very helpful from you my brother šŸ‘
13th Jul 2020, 12:54 PM
Abdulaziz Abdurasul
Abdulaziz Abdurasul - avatar