This repository has been archived on 2025-03-25. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
movie-react-app/src/App.jsx
“Henry-Hiles” 4ff46b5103 Set base path
2022-11-15 10:56:40 -05:00

20 lines
644 B
JavaScript

import { Routes, Route } from "react-router-dom"
import Home from "pages/Home"
import Movie from "pages/Movie"
import Actor from "pages/Actor"
import Ratings from "pages/Ratings"
import styles from "styles/App.module.css"
const App = () => (
<div className={styles.App}>
<Routes>
<Route index element={<Home />} />
<Route path="movie/:movieId" element={<Movie />} />
<Route path="actor/:actorId" element={<Actor />} />
<Route path="ratings" element={<Ratings />} />
<Route path="*" element={<h1>404 - Not Found</h1>} />
</Routes>
</div>
)
export default App