skip to Main Content

Reactjs – "hello" path not found with the react-router-dom v6 and @types/react-router-dom v5.3.3

Main file: import React, { useContext, useEffect } from 'react'; import { Route, RouteProps, Routes, useLocation, useMatch } from 'react-router-dom'; import AuthenticationContext from './AuthenticationContext'; export type PrivateRouteProps = RouteProps & { Element?: React.ComponentType<any>; }; /* eslint-disable react/jsx-props-no-spreading */ function PrivateRoute({…

VIEW QUESTION
Back To Top
Search