VAVishnu Aithalinvishnu-aithal.hashnode.dev·Jun 10, 2022 · 5 min readRead Data from Firestore and React custom hooks for realtime data.Prequisites React Custom Hooks Firebase Initialization Contents Firestore Read Methods reference and doc() getDoc() and snapShot collection(), query() and getDocs() onSnapshot and realtime data subscription React custom hooks for realtime da...00
VAVishnu Aithalinvishnu-aithal.hashnode.dev·Sep 27, 2021 · 5 min readCycle through dates easily with Date() ObjectWhile I was creating a Palindrome Date Checker app for neoG.camp projects, if the user-input date was not a Palindrome, I had to find the closest Palindrome date. To achieve this I had to cycle through dates forward and backward checking for palindro...00
VAVishnu Aithalinvishnu-aithal.hashnode.dev·Sep 27, 2021 · 4 min readAllow only valid inputs for "number" input, using "validity.valid" and improve user friendlinessWhat is "validity.valid"? validity.valid is an inherent property of html5 form input element. It is assigned a Realtime boolean value based on the content in input field. How does it determine if its valid ? it uses ValidityState inbuilt WebAPI and c...00