This page gets current User from Local Storage by calling AuthService.getCurrentUser() method and show user information (with token). React How to Logout when JWT Token is expired. Editors note: This article was updated on 31 January 2022 to reflect the most recent version of Axios (v0.25.x). Hi, here you are: React Hooks: JWT Authentication (without Redux) example. Probably TMI, but Axios uses a XMLHttpRequest under the hood, not Request. We will build a React Client with Axios library to make CRUD requests to Rest API in that: This React Axios Client works with the following Web API: You can find step by step to build a Server like this in one of these posts: There are 2 ways to import Axios into React Application: For example, open public/index.html and add HTML