useAutoScroll custom hook in ReactjsIntroduction You might have seen on streaming platforms such as youtube.com or twitch.com where there are live chat feeds, whenever a new chat comes, mainly two things happen:1. Auto-scrolls at the bottom2. If a user scrolls the feed on the top then ...4 min read·rohanmathur.hashnode.devSep 1, 2023
Generate dynamic meta-tags for your client-side rendered web appWhy do we need this? Let's consider a youtube video example, whenever we share a video on any social media platform say twitter.com, the link also shows some images and text giving more context to what that video is all about. See the below example. ...4 min read·rohanmathur.hashnode.devSep 1, 2023
Prototypes and Classes in JavaScriptIn this blog we will understand prototypes, __proto__ property, "new" keyword, and classes in javascript.6 min read·rohanmathur.hashnode.devMay 12, 2022
Method borrowing in JavaScript.So let's start with what method borrowing in javascript is? where we can use it? and how to do it? As the name says method borrowing, we can borrow i.e use methods of one object with another object. Suppose we want to use some methods which are prese...3 min read·rohanmathur.hashnode.devMay 11, 2022
Functional programming in JavaScriptFunctional Programming is a programming paradigm where we write our code as pure functions and avoid side effects.4 min read·rohanmathur.hashnode.devMar 5, 2022