Skip to content

Switch replaced with Routes #3

@BLAKKENATION

Description

@BLAKKENATION

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions