This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
react-rest-request/examples/movies/src/app.tsx

20 lines
487 B
TypeScript
Raw Normal View History

2020-11-04 14:39:57 +03:00
import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom'
import { MoviePage, MoviesPage } from './pages';
2020-11-04 14:39:57 +03:00
export default function App() {
return (
<BrowserRouter>
<Switch>
<Route exact path='/'>
<MoviesPage />
</Route>
<Route exact path='/:id'>
<MoviePage />
</Route>
</Switch>
</BrowserRouter>
)
2020-11-04 14:39:57 +03:00
}