Skip to content

Develop#2136

Open
maximtsyrulnyk wants to merge 4 commits intomate-academy:masterfrom
maximtsyrulnyk:develop
Open

Develop#2136
maximtsyrulnyk wants to merge 4 commits intomate-academy:masterfrom
maximtsyrulnyk:develop

Conversation

@maximtsyrulnyk
Copy link

Done "React Todo App with API" task
DEMO LINK

Copy link

@Anton-Kuchmasov Anton-Kuchmasov left a comment

Choose a reason for hiding this comment

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

Good job!

Check out comments below - they might be helpful

src/App.tsx Outdated
getTodos()
.then(setTodos)
.catch(() => {
setErrorMessage('Unable to load todos');

Choose a reason for hiding this comment

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

Please create a custom type / enum (e.g. ErrorMessage), put inside all possible Error Messages and re-use it to avoid hard-coded errors

src/App.tsx Outdated
});
}, []);

// Auto-focus input after add/delete operations

Choose a reason for hiding this comment

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

get rid of all inline comments

src/App.tsx Outdated
Comment on lines +56 to +58
const handleCloseError = useCallback(() => {
setErrorMessage('');
}, []);

Choose a reason for hiding this comment

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

what's purpose of this function, especially - of wrapping it inside useCallback() ?

@maximtsyrulnyk
Copy link
Author

edited code according reccomendations DEMO LINK

Copy link

@2pasha 2pasha left a comment

Choose a reason for hiding this comment

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

good job!

please make sure that you have passed all tests before submitting
Image

className={cn('filter__link', {
selected: filter === value,
})}
data-cy={`FilterLink${value}`}
Copy link

Choose a reason for hiding this comment

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

data attributes are case sensative

@maximtsyrulnyk
Copy link
Author

edited code DEMO LINK

@maximtsyrulnyk maximtsyrulnyk requested a review from 2pasha March 3, 2026 11:40
Copy link

@etojeDenys etojeDenys left a comment

Choose a reason for hiding this comment

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

lgtm

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.

4 participants