-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greatmoviez #45
base: main
Are you sure you want to change the base?
Greatmoviez #45
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job with this project Johanna! You managed well with the requirements as well as copying the design. I made some small comments about things to think about going forward, but overall your code is clean and easy to read which I really appreciate 💪
export const App = () => ( | ||
<Router> | ||
<Routes> | ||
<Route path="/" element={<HomePage />} /> | ||
<Route path="/movies/:id" element={<MoviePage />} /> | ||
</Routes> | ||
</Router> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and clean App structure 👍
@@ -0,0 +1,64 @@ | |||
.HomePage { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be kebab-case for class names 👀
.then((response) => response.json()) | ||
.then((data) => setMovie(data)); | ||
}, []); | ||
console.log(movie); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove console.logs in production
console.log(movie); | ||
|
||
if (!movie) { | ||
return <h1></h1>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
https://greatmoviez.netlify.app/