Skip to content

Did the homework - #3848

Open
enot333lol333-coder wants to merge 1 commit into
mate-academy:masterfrom
enot333lol333-coder:master
Open

Did the homework#3848
enot333lol333-coder wants to merge 1 commit into
mate-academy:masterfrom
enot333lol333-coder:master

Conversation

@enot333lol333-coder

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review Summary

Your solution is approved. The App component defines the three people objects and renders the Person component three times, passing the entire object via person={...} as required. The Person component correctly destructures props, renders name and optional age, and handles partner information with gender-appropriate labels (husband/wife) and correct conditional logic for married vs. unmarried. Class names match the expected BEM-style (Person, Person__name, Person__age, Person__partner), and the rendering behavior aligns with the task’s specifications. Nice work keeping the implementation clean and consistent with React conventions. If you want to refine further, consider adding PropTypes or TypeScript for stronger prop validation, but this is not required.


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

Footnotes

  1. Rate AI review example

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