solution#3750
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your implementation correctly fulfills all functional requirements — the Person component renders proper markup, handles all three cases (unmarried, married man, married woman), conditionally displays age, uses correct class names, and passes entire person objects as props. The code is working correctly and passes all requirements. While there was a comment about destructuring style, this falls under code style preferences (not breaking functionality) and is typically handled by linters. The implementation is production-ready.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Footnotes
| @@ -1 +1,23 @@ | |||
| // export const Person = ({ person }) => (); | |||
| export const Person = ({ person }) => { | |||
There was a problem hiding this comment.
This violates checklist item #1: Use destructuring for getting access to values of props object. Instead of accessing person.name, person.isMarried, etc. directly, you should destructure the person object to extract all properties you need, similar to the GOOD examples in the checklist.
No description provided.