How to merge JS objects with common keysWhile working on a project, I came across a situation where I had to merge 2 objects with common keys. In this post, I'll show you a simple solution to merge the objects. Problem statement: We have 2 objects(originalObject and objectToMerge) and each...Jun 16, 2021 · 2 min readrahuln.hashnode.dev
How to secure your website against Cookies theft and Cross Site Scripting30% of web applications are vulnerable to XSS. Source: Acunetix vulnerability report 2019 Our dependency on the Internet has increased multifold over the last decade. Today we use internet for anything and everything from buying products off the e-c...Apr 9, 2021 · 8 min readrahuln.hashnode.dev
Manage React state for dynamically generated input elementsWhile working on a personal project, I stumbled upon a scenario where the number of input elements rendering on the screen was not fixed, it could be just 1 or 100 or anything in between. How do you manage React state in such a scenario? Let's find ...Apr 2, 2021 · 2 min readrahuln.hashnode.dev
My learning from building a calculator in a day using ReactJSSo I built a tiny calculator this Saturday. Why a calculator? Why in a day? Sadly I enjoy procrastinating and dragging my side projects to days when they can be completed in a day or two and so I thought of setting up a strict timeline and start wit...1AMar 7, 2021 · 2 min readrahuln.hashnode.dev
Animate Button text using only CSSHello, Hola and Namaste! Today we are going to achieve what you see in the article cover image. Basically, we would animate the button text to smoothly slide up and down and show a different text when one hovers over it. Without further ado, let's di...Dec 26, 2020 · 3 min readrahuln.hashnode.dev