Skip to content
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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

johannacatalinismith
Copy link

Copy link
Contributor

@HIPPIEKICK HIPPIEKICK left a 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 💪

Comment on lines +7 to +14
export const App = () => (
<Router>
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/movies/:id" element={<MoviePage />} />
</Routes>
</Router>
);
Copy link
Contributor

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 {
Copy link
Contributor

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);
Copy link
Contributor

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>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants