Tim Mouskhelichvili • August 16, 2022 • 3 minutes to read
One of the primary benefits of using React is that it simplifies web application development. In React, you do not manipulate DOM elements directly. Instead, you work with components. However, there might be a time when you need direct [...]
Tim Mouskhelichvili • August 15, 2022 • 3 minutes to read
React offers multiple ways to style its components. One of the most uncomplicated is to use classes like you would with HTML/CSS. In React, you add CSS classes using the className property. But how do you add a conditional [...]
Tim Mouskhelichvili • July 12, 2022 • 2 minutes to read
In TypeScript, checking if a variable or argument is defined is one of the most common tasks. Luckily, it is simple to accomplish. The easiest way to check for undefined in TypeScript is to use a condition check, like [...]
Tim Mouskhelichvili • May 31, 2022 • 2 minutes to read
If you regularly work with Git, you have surely noticed that Git doesn't like empty folders. It doesn't include them when you try to commit. Luckily, you can still add an empty folder in Git using a .gitkeep file [...]
Tim Mouskhelichvili • May 7, 2022 • 3 minutes to read
TypeScript adds optional type checking capabilities to JavaScript. Indeed, code written in TypeScript is checked for error before it is executed, saving development and debugging time. One of the potential errors that a developer might encounter is the TypeScript [...]
Tim Mouskhelichvili • May 4, 2022 • 2 minutes to read
In TypeScript, there could be many scenarios where a developer might want to pause or sleep a function's execution for a specific time. This function used to be hard to implement, but nowadays, promises make it very simple. To [...]
Tim Mouskhelichvili • May 2, 2022 • 2 minutes to read
The node_modules folder contains all the saved JavaScript dependencies of a project. Since this folder often has a massive size, developers typically do not commit it inside the Git repository. To ignore the node_modules folder in Git, create a [...]
Tim Mouskhelichvili • March 7, 2022 • 5 minutes to read
In web development, you often need a data structure to hold a mapping of key/value pairs. This data structure has many names: a map, a dictionary, an associative array... Its functionality, however, always remains the same. The data structure [...]
Tim Mouskhelichvili • March 7, 2022 • 2 minutes to read
There is a lot of use cases where you would want to pause your JavaScript's execution before running the next line. Sadly, a function like that is absent from JavaScript's default functionality. Luckily for us, JavaScript provides a few [...]