3Dshock/client/src/App.tsx

22 lines
494 B
TypeScript
Raw Normal View History

2021-03-08 01:18:51 +00:00
import React from 'react'
import './App.css'
import { BrowserRouter, Switch, Route } from 'react-router-dom'
import { Dashboard } from './pages/Dashboard'
import { Session } from './pages/Session'
function App() {
return (
<BrowserRouter>
<div className="App">
<Switch>
<Route path="/sessions/:clientId" component={Session} />
2021-03-08 02:17:00 +00:00
<Route exact path="/" component={Dashboard} />
2021-03-08 01:18:51 +00:00
</Switch>
</div>
</BrowserRouter>
)
}
export default App