To call a method from another class component in React.js, we pass the function from…
Coding
To post request with JSON data with Axios, we call axios.post with the JSON payload…
To prevent e and dot in an input type number with React, we can validate…
To get page URL or hostname in Next.js project, we can use next-absolute-url. For instance,…
Sometimes, we want to get the scrollbar size of an element with JavaScript. In this…
Oftentimes, we want to append new properties to a JavaScript object in our code. In…
Sometimes, we want to build a tree array from a flattened array in JavaScript. In…
Sometimes, we’ve to find the max value of a property in an array of JavaScript…
Sometimes we may want to get distinct values from an array of objects in our…
Removing a last item from the JavaScript array is something that we’ve to do sometimes…