Did the homework - #3848
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
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! ✨
DEMO LINK