-
Notifications
You must be signed in to change notification settings - Fork 177
Open
Description
the Switch is no longer working on v6 so i tried replacing it with routes so the code is compiling successfully but no output is showing
import React from 'react'
import { Routes, Route } from 'react-router-dom'
import Dashboard from '../pages/Dashboard'
import Customers from '../pages/Customers'
const App = () => {
return (
<Routes>
<Route path='/' exact component={Dashboard}/>
<Route path='/customers' component={Customers}/>
</Routes>
)
}
export default App;
Metadata
Metadata
Assignees
Labels
No labels