Tim Mouskhelichvili • August 25, 2023 • 2 minutes to read
When working on a Git repository, by yourself or with other developers, you may need to merge a specific file from another branch. But how do you do it? This article gives multiple methods of achieving it with detailed [...]
Tim Mouskhelichvili • August 21, 2023 • 2 minutes to read
When working on a Git repository that contains a submodule, a developer may need to reset it. But how do you do it? This article explains resetting a Git submodule and gives multiple methods (with code snippets) to achieve [...]
Tim Mouskhelichvili • August 14, 2023 • 2 minutes to read
Sometimes, when working on a project, a developer may need to add a folder recursively (with all its content) to a Git repository. But how do you do it? To recursively add a folder to a Git repository you [...]
Tim Mouskhelichvili • June 18, 2023 • 3 minutes to read
When working on a React web development project, a developer may need to redirect to another page. But, how do you do it? This article explains how to redirect to an external URL in React and shows multiple code [...]
Tim Mouskhelichvili • June 12, 2023 • 2 minutes to read
When developing your next hit web application project in React, you may need to refresh a page. But how do you do it? This article explains how to refresh a page in React, shows how to persist the state [...]
Tim Mouskhelichvili • June 5, 2023 • 3 minutes to read
When it comes to React development, testing your code is almost as important as writing it. One of the best libraries for this task is Jest (developed by Facebook). When testing a piece of React code, a developer often [...]
Tim Mouskhelichvili • May 29, 2023 • 2 minutes to read
Sometimes, when making requests with the axios library, the server to which you are making the call hangs, and the request takes forever to complete. For those cases, you need to set up a request timeout so your uses [...]
Tim Mouskhelichvili • May 24, 2023 • 2 minutes to read
Nowadays, many APIs are not accessible without first authenticating. This helps to provide a safe and secure environment for the API users. After the authentication, the user can safely make calls to the API. But how do you authorize [...]
Tim Mouskhelichvili • March 24, 2023 • 2 minutes to read
When creating a TypeScript project, developers often need to merge objects. But how do you do it? To merge objects in TypeScript, a developer can: Use the spread operator Use Object.assign Use the Lodash merge function This article [...]
Tim Mouskhelichvili • February 13, 2023 • 3 minutes to read
The dictionary, also called map or associative array, is one of the fundamental data structures in computer science. But what is it, and how to build one in TypeScript? In TypeScript, you can build a dictionary using: An indexed [...]