Interaction with users is one of the most important parts of any web application and can be done in a number of different ways. You can either create a nice looking custom form to collect data, or sometimes (when creating Minimum Viable Product) use some built-in functionality to trigger...Read more
Events are the crucial part of any web application, so knowing how to handle them properly is a must for a good web developer. There are many built-in events that can be used on any element that extends the EventTarget interface, such as...Read more
In some cases, such as when you have named a branch that does not conform to the project standard, you need to rename it. It's a super simple task, but often developers forget either the commands or the exact order of arguments and they have to...Read more
TypeScript is very flexible, and in addition to the ability to create new types, it also offers the ability to transform existing types. Such transformations are usually done with Utility Types, which are built-in and globally accessible...Read more
If you read the previous article about Event Bubbling, you probably know that event propagation in HTML is done from the innermost element to all of its parents. But what if I told you that it is done the other way around?...Read more
Have you ever noticed that a click handler added to the parent node fires even when child elements are clicked? It may be confusing at first, but that's how Event Bubbling works in JavaScript. In order to properly handle different types of events on DOM nodes...Read more
Probably every React developer is familiar with a useState hook, which is used to add state to functional components. But updating a state with it can be a nightmare when you store an object with many nested properties, one of which...Read more
React provides us with a useLayoutEffect hook to improve our applications in some specific cases, however not everyone is aware of how to use it. It works pretty much the same as useEffect, however they are executed after different...Read more
Git is probably the best tool for version control and successful development team collaboration. Usually, developers keep the codebase in one place, like GitHub or GitLab, but in some cases it may be necessary to work with the project stored in different locations and keep...Read more