This is considered to be bad user experience – especially in mobile.
What I gonna show you now is very different to the most of the React tutorials.
Difference of the real application is that it needs form inputs validation, which can make your code look like a mess.
So, lets take our simple form component from the previous article.
It holds user information in its state, and is supposed to save new user to the server in component wrapper.
The validation of data that has been entered in a form is necessary in most cases. For example, what good is holding a contest or sweepstakes if you can’t notify the winner, because he or she entered an invalid telephone number or an incorrect address.