
Mastering React Component Re-rendering in Jest
In this hands-on guide, we’ll explore the art of optimizing React component re-rendering within Jest tests. By combining theory with practical coding examples, you’ll gain a deep…

Test responsive design using jest and react-testing-library
Testing design breakpoints in React applications is an important aspect of front-end development. It ensures that the components look and behave as expected on different screen sizes….

Find last index of element inside array by certain condition
In Javascript, the following snippet of code pass over an array of objects and does filter the array based on certain conditions, the output of this process…

Detect If Browser Tab Has Focus In Javascript
There are a few options we can use in order to Detect If Browser Tab Has Focus In Javascript. Some of those options are: 1- Detect using…

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…

Get the number of days in a month using JavaScript
Introduction There are a few options we can use to get the number of days in a month using JavaScript, let’s check the following examples to see…

Implement Heatmaps using HighCharts in React
Introduction HightCharts is a powerful library for creating data visualizations, It comes with many tools that allow to creation of a reliable and secure chart. This article…

How to dynamically inject JS/CSS into a webpage
Introduction Working with the new frontend tech stacks is fun, however, in some cases, it might be challenging there’s a need to host the frontend application in…