In this article, we will see how to add headers to the Axios requests. In some scenarios, while making requests with Axios, we may need to add custom headers to the request, such as authentication tokens, content types, or user…
Programming
In this article, we will see how to pass the data between multiple components while navigating programmatically using the react router. Using the push method of an history object we can push the new URL that we want to navigate…
In this article, we will see how to detect when a user is leaving a page using React Router. There are several use cases where we must detect if the user is leaving the page. For example, if user is…
In this article, we will see what happens if we update or set state inside the react useEffect. In react, we create the state using the useState() hook. Following is the syntax. In the above example, the “state” is the…
In this article, we will see how to add remove and get the tags of a commit in git. Tags allow us to mark specific commits with a meaningful labels. This can make it easier to identify important milestones in…
In this article, we will see how to see the files changed in the last commit in git. Sometimes we need to check the files that were changed in the last commit to keep track of the changes made to…
In the article, we will see some of the possible scenarios where git will track the directories even though they are specified in the .gitignore file. The .gitignore file is a configuration file in Git that allows us to specify…
In this article, we will see what does –no-ff option does in git along with examples. When we merge two branches, by default Git uses the fast-forward merge method, which simply moves the branch pointer to the latest commit without…
In this article, we will see how to get the current status of git bisect. Before we get the current status of the git bisect, first, we need to start the git bisect. Use the following command to start the…
In this article, we will see the best way to mark a git commit as work in progress. When we are working on some feature in a large project, it is common to make several commits that are not to…