harshkc.hashnode.devJS Variables 101: Var, Let and ConstYet another blog explaining Var, Let and Const but I promise this is the only one you need. ECMASCRIPT2015, also known as ES6 introduced a lot of awesome features. One of the features was the addition of let and const for declaring variables. Previou...Jan 21, 2022·6 min read
harshkc.hashnode.devStop Building Your UI Components like this ❌It is true everyone feels elated abstracting the most often copy-pasted code in the codebase into a reusable component. One bad effect of that is hasty abstractions which is a story for another day, today's agenda is to learn how to make actually reu...Dec 22, 2021·5 min read
harshkc.hashnode.devCreating A Flip Book Animation With React : The declarative wayIn today's post, we will learn to create a flipbook style animation by converting a simple class-based component into a functional component. If you used React Hooks for more than a few hours, you probably ran into an intriguing problem: using setInt...Dec 16, 2021·3 min read
harshkc.hashnode.devA Quick Guide to Testing Custom React HooksThe developer on the cover is clearly not looking happy. No no this has nothing to do with Testing. Testing is Fun ;), and if you hate it maybe I can change your mind, stay with me. We are utilising our super cool useAsync() hook that we developed i...Dec 10, 2021·7 min read
harshkc.hashnode.devAre you really writing true generic hooks?This is part 2 of "I promise this hook will blow your 1000+ lines of Async code" WoW, part 1 got a solid response, if you haven't checked that yet go ahead here, it shows how this hook can help you write clean, robust and readable code. But as promis...Dec 4, 2021·9 min read