SSShubham Sananseinshubhs.hashnode.dev·Apr 28, 2021 · 4 min read10 React Practices To Make Your Code Better.1. Functional Components > Class Components Functional components have much simple syntax than class components and more readable. As of now, you can't create error boundaries with class components but if you want but you can also use packages like r...00
SSShubham Sananseinshubhs.hashnode.dev·Apr 27, 2021 · 5 min readuseRef( ) : DOM and beyond...This blog assumes that you know the React fundamentals and useState hook. Read my article on what is a state in an App? and useState hook (there's a TL;DR section, if you want to have a quick look 😉), you would need some of that state-related conce...00
SSShubham Sananseinshubhs.hashnode.dev·Feb 6, 2021 · 8 min readuseState() like a Pro ✨This blog assumes that you know the fundamentals of react like Component, Props and jsx. TL;DR useState() returns 2 values, 1st is a value that will persist across renders and 2nd is and API to update that value and trigger a re-render. const [per...07JRBCD