This tutorial shows how to create Private Route in React using hooks. Prerequisites: React js Hooks React Router Step 1: Start by creating a react app. Step 2: Install react router dom. npm install react-router-dom Step 3: Lets create a reusable auth component The auth component will return 2 things : Sign in status & User. In Below code use your API to get the user and sign in status. Step 4: Lets create our private route