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

Tugbanur-React week2 #16

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

Conversation

Tugbanur-f
Copy link

No description provided.

@Tugbanur-f
Copy link
Author

Netlify Link

@MaryRichelle MaryRichelle self-assigned this Nov 28, 2024
Copy link

@MaryRichelle MaryRichelle left a comment

Choose a reason for hiding this comment

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

Great job! 👏👏
I’d like to point out two things:

When starting work, always check out from the main branch. This makes it easier for us to review only the files that were changed during the week.
It would be better to move the API logic into a separate file for cleaner and more organized code.

}
/>
<Route path="/product/:id" element={<ProductDetail />} />
</Routes>

Choose a reason for hiding this comment

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

Nice work
Next time try moving the Routes and Route setup into a separate file or component. This will make the code easier to read and manage, especially if you add more routes in the future.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you. I will do that in the project. Thanks for your feedback

import { useEffect, useState } from "react";

const ProductDetail = () => {
const { id } = useParams();

Choose a reason for hiding this comment

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

Nice 👏👏

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

Successfully merging this pull request may close these issues.

2 participants