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...
In questa pagina del sito puoi guardare il video online React JS Tutorial - #13 Input Validation della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Code Realm 22 gennaio 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 16,902 volte e gli è piaciuto 64 spettatori. Buona visione!