Dmitriy Pleshevskiy
a1574769e9
* fix(client): remove destruction from response * chore: update example Add single endpoint, add router, add pages Closes #9
19 lines
487 B
TypeScript
19 lines
487 B
TypeScript
import React from 'react';
|
|
import { BrowserRouter, Route, Switch } from 'react-router-dom'
|
|
import { MoviePage, MoviesPage } from './pages';
|
|
|
|
|
|
export default function App() {
|
|
return (
|
|
<BrowserRouter>
|
|
<Switch>
|
|
<Route exact path='/'>
|
|
<MoviesPage />
|
|
</Route>
|
|
<Route exact path='/:id'>
|
|
<MoviePage />
|
|
</Route>
|
|
</Switch>
|
|
</BrowserRouter>
|
|
)
|
|
}
|