3Dshock/client/src/App.tsx
2021-03-07 19:17:00 -07:00

22 lines
494 B
TypeScript

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} />
<Route exact path="/" component={Dashboard} />
</Switch>
</div>
</BrowserRouter>
)
}
export default App