There is a saying in web development and programming in general, that goes along the lines of "never trust the users of your app". If your website can be hijacked, sooner or later it probably will. Therefore we should take input validation and sanitization very seriously to provide for better security of our software.
Up until this point, we assumed that the user would be so kind to enter a valid date in the proper format. However, that's very rarely the case. People make mistakes, often unintentionally. Don't worry though, form validation, as you'll see, is fairly straightforward in React. I'll show you how we can secure our countdown app by checking user input before it's sent up to the parent component for calculation and rendering. Ready to learn? Then let's roll :)
Short-circuiting with && (Logical AND): http://javascriptissexy.com/12-simple...
Sur cette page du site, vous pouvez voir la vidéo en ligne React JS Tutorial - #13 Input Validation durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code Realm 22 janvier 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 16,902 fois et il a aimé 64 téléspectateurs. Bon visionnage!