generated from goitacademy/react-homework-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
664cc0d
commit 1a7b766
Showing
7 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
export const App = () => { | ||
import React from 'react'; | ||
import { Route, Routes } from 'react-router-dom'; | ||
|
||
import Home from '../pages/Home'; | ||
import Movies from '../pages/Movies'; | ||
import MovieDetails from '../pages/MovieDetails'; | ||
import Cast from '../pages/Cast'; | ||
import Reviews from '../pages/Reviews'; | ||
|
||
const App = () => { | ||
return ( | ||
<div | ||
style={{ | ||
height: '100vh', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
fontSize: 40, | ||
color: '#010101' | ||
}} | ||
> | ||
React homework template | ||
</div> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/movies" element={<Movies />} /> | ||
<Route path="/movies/:movieId" element={<MovieDetails />} /> | ||
<Route path="/movies/:movieId/cast" element={<Cast />} /> | ||
<Route path="/movies/:movieId/reviews" element={<Reviews />} /> | ||
</Routes> | ||
); | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function Cast() { | ||
return <div>Cast...</div>; | ||
} | ||
|
||
export default Cast; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function Home() { | ||
return <div>Home...</div>; | ||
} | ||
|
||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function MovieDetails() { | ||
return <div>MovieDetails...</div>; | ||
} | ||
|
||
export default MovieDetails; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function Movies() { | ||
return <div>Movies...</div>; | ||
} | ||
|
||
export default Movies; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function Reviews() { | ||
return <div>Reviews...</div>; | ||
} | ||
|
||
export default Reviews; |