I am using react-router and write the code like below.
I think all code is written well.
And when I go to '/manage', Manage.js file is properly open.
However I keep facing warning message:
React Router: router.ts:11 No routes matched location "/manage"
What is the problem?
<ApolloProvider client={client}>
<BrowserRouter>
{isLoggedIn ? (
<Routes>
<Route path="/statistics" element={<Statistics />} />
<Route path="/manage" element={<Manage />} />
<Route path="/info" element={<Info />} />
<Route path="/rank" element={<Rank />} />
<Route path="/notice" element={<Notice />} />
</Routes>
) : (
<Routes>
<Route exact path="/" element={<Home />} />
</Routes>
)}
</BrowserRouter>
</ApolloProvider>