Skip to content

added task solution - #3866

Open
toshka7313 wants to merge 1 commit into
mate-academy:masterfrom
toshka7313:develop
Open

added task solution#3866
toshka7313 wants to merge 1 commit into
mate-academy:masterfrom
toshka7313:develop

Conversation

@toshka7313

Copy link
Copy Markdown

No description provided.

@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 Person.jsx component correctly implements all requirements: it properly destructures the person prop, conditionally renders the age section only when present, determines partner role (wife/husband) based on sex, and displays the appropriate marriage message. The App.jsx correctly uses the Person component three times with the full person object passed as a prop. The ternary operator formatting and use of separate variables for complex conditions also meet the specification. All functionality works as expected.


✨ 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