Implement a Person component rendering a person details using the given markup
and use it 3 times inside the App instead of static markup.
- pass the whole person as a prop
<Person person={misha} />(not individual fields); - omit
ageif it is not given; - if a man is married use
wifefor a partner andhusbandif a woman is married; - if a person is not marriend - print
I am not marriedmessage; - keep the same classNames in
Person.jsxas inApp.jsx(Person,Person__name,Person__age,Person__partner).
- Implement a solution following the React task guideline.
- Open one more terminal and run tests with
npm testto ensure your solution is correct. - Replace
<your_account>with your Github username in the DEMO LINK and add it to the PR description.