Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #1523

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Develop #1523

wants to merge 4 commits into from

Conversation

Hanna-Balabukha
Copy link

Copy link

@Anastasiia-Svintsova Anastasiia-Svintsova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
image

src/App.jsx Outdated
Comment on lines 7 to 9
<Person
person={misha}
/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to split it into several lines when there are fewer than 3 props

Suggested change
<Person
person={misha}
/>
<Person person={misha} />

src/Person.jsx Outdated
Comment on lines 10 to 12
My name is
{' '}
{name}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using Template literals for better readability

src/Person.jsx Outdated
Comment on lines 14 to 15
<p className="Person__age">
{age && (

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't render this element if there is no age

Suggested change
<p className="Person__age">
{age && (
{age && (
<p className="Person__age">

src/Person.jsx Outdated
Comment on lines 4 to 5
const { name, age, sex, isMarried,
partnerName = 'I am not married' } = person;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The partnerName should be a name. You can create a separate variable for a partner and assign a value here

Suggested change
const { name, age, sex, isMarried,
partnerName = 'I am not married' } = person;
const {
name,
age,
sex,
isMarried,
partnerName
} = person;

Copy link

@lerastarynets lerastarynets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You've got this, keep pushing forward!

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.

3 participants