+ 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 Antworten
+ 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