Initial commit
This commit is contained in:
commit
7b9f81dd64
20 changed files with 2789 additions and 0 deletions
16
src/App.jsx
Normal file
16
src/App.jsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { Routes, Route } from "react-router-dom"
|
||||
import "./App.css"
|
||||
import Home from "pages/Home"
|
||||
import Movie from "pages/Movie"
|
||||
|
||||
const App = () => (
|
||||
<div className="App">
|
||||
<Routes>
|
||||
<Route index element={<Home />} />
|
||||
<Route path="/movie/:movieId" element={<Movie />} />
|
||||
<Route path="*" element={<h1>404 - Not Found</h1>} />
|
||||
</Routes>
|
||||
</div>
|
||||
)
|
||||
|
||||
export default App
|
Reference in a new issue