In React, returning multiple elements from a single component is a common scenario. For this to work properly, all of these elements should be wrapped in a parent element (we do not consider returning arrays from render...Read more
Since today is the day before Christmas, I thought I'd share with you a great tool I have been actively using for the past year to quickly run my JavaScript code. I often find myself in situations, where I need to experiment with some code I found on StackOverflow or somewhere...Read more
In React, changing the state of the parent component triggers a re-render of the entire component tree. This often leads to the unnecessary rendering of child components, whose props have not actually changed. Undoubtedly, this slows down the application, especially if...Read more
Developers usually have a set of tools that they use on a daily basis when developing various projects. They help to set up the project, speed up the development process, test the final result, and make it accessible to the end-users...Read more
LocalStorage is a widely used Web Storage that is used to keep the data local in the user's browser. The data stored there has no expiry date, i.e. it remains stored until it is deleted with the code or manually by the...Read more
When it comes to developing an application that enables real-time operations, the first thing that comes to mind is WebSockets, which is fine, but there are other options that need to be considered. One of them is Server-Sent Events...Read more
This warning is one of the most popular warnings React developers face. I am one hundred percent sure that every developer has encountered it at least once and did not know why it appeared and how to get rid of it. First of all...Read more
Aborting requests built on top of Promises was never an easy thing to do (if at all possible) until AbortController and AbortSignal were added to the JavaScript specification. They allow developers to use a signal to abort one or...Read more
React and Redux are great tools that can be used together to build web or mobile applications of varying size and complexity. Even though React is extremely fast "out-of-the-box", as the application grows, it is difficult to keep it...Read more