
How to remove highcharts.com credits link
Highcharts is a popular JavaScript charting library that offers a wide range of interactive and customizable charts for developers. However, if you’re using the free version of…

The basic guide for CSS container queries
As web design evolves, developers have found that responsive design using media queries isn’t always the best solution. Media queries can only respond to the size of…

How to measure the performance of javascript function
Introduction There are several ways to measure the performance of a JavaScript function. One way is to use the performance.now() method, which is part of the Performance…

Clear all the timeout objects from webpage in Javascript
setTimeout function is used to achieve asynchronous tasks in JavaScript. The return value of setTimeout is an Integer. This value can be passed to clearTimeout method to clear that timeout….

How to parse a URL query parameters in javascript
To parse the URL query parameters in Javascript, we can use the URLSearchParams interface, which has some utility functions that allow us to easily parse/build URLs. Examples…

useNavigate may be used only in the context of a component
If you’ve ever faced the following error in React: useNavigate() may be used only in the context of a component This error throws in useNavigate hook. This happens…

No QueryClient set, use QueryClientProvider to set one
When working with React-Query you might encounter the following error: No QueryClient set, use QueryClientProvider to set one, this source of this error might be one of…

How to detect location hash changes in Javascript
Introduction To detect the browser location hash changes in Javascript, there’s a web API event called hashchange. Which we can rely on to detect the change in…

Conditionally add a new property to JS objects
Introduction Recently, I published an article about How to spread objects in Javascript conditionally. This article won’t have much difference from the previous one, it rather demonstrates…