ProtectedRoute in React (Notes)

A ProtectedRoute is a wrapper component used to restrict access to certain routes in a React app.