Skip to content

Task solution#1774

Open
Dominik-Dudek-code wants to merge 1 commit intomate-academy:masterfrom
Dominik-Dudek-code:develop
Open

Task solution#1774
Dominik-Dudek-code wants to merge 1 commit intomate-academy:masterfrom
Dominik-Dudek-code:develop

Conversation

@Dominik-Dudek-code
Copy link

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Your code is well-structured and meets most of the task requirements! 🎉 While there are a few minor improvements suggested, such as avoiding inline event handlers and considering type specifications for props, these do not impact the core functionality. Keep up the great work and consider these suggestions for future enhancements! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

{/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}
<button data-cy="ClearButton" type="button" className="delete ml-3" />
</h1>
export class App extends React.Component<{}, State> {

Choose a reason for hiding this comment

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

Consider specifying the type of the props in the React.Component generic type. Currently, it's using an empty object {} which is fine if there are no props, but it's good practice to explicitly define it for clarity and future maintenance.


return (
<main className="section container">
{selectedGood.length !== 0 ? (

Choose a reason for hiding this comment

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

Using selectedGood.length !== 0 is correct, but you might want to consider using selectedGood directly in the conditional check, as it is a string and will evaluate to false when empty. This is a minor readability improvement.

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.

3 participants