一覧へ戻る
mate-academy/react_person(新しいタブで開きます)
主要言語: JavaScript
- star 数
- 2
- watcher 数
- 8
- fork 数
- 3,572
- issue 数
- 3,482
- 最終更新
- 2025/05/15
主要言語: JavaScript
Implement a Person component rendering a person's details using the given markup
and use it 3 times inside the App instead of static markup.
<Person person={misha} /> (do not use individual fields);age if it is not present in the person object;wife; if a woman is married, refer to her partner as husband;Person.jsx match those used in App.jsx (Person, Person__name, Person__age, Person__partner).Important: The constants misha, olya, and alex are valid and should not be modified. Property age is optional.
npm test to ensure your solution is correct.<your_account> with your Github username in the DEMO LINK and add it to the PR description.