-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 #1590
base: master
Are you sure you want to change the base?
Develop #1590
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GJ
Let's just fix some code style issues
src/App.jsx
Outdated
<Person | ||
person={misha} | ||
/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Person | |
person={misha} | |
/> | |
<Personperson={misha} /> |
src/components/Person/Person.jsx
Outdated
{person.isMarried === true ? ( | ||
newVariable | ||
) : (`I am not married`)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{person.isMarried === true ? ( | |
newVariable | |
) : (`I am not married`)} | |
{person.isMarried | |
? newVariable | |
: `I am not married` | |
} |
src/components/Person/Person.jsx
Outdated
@@ -1 +1,20 @@ | |||
// export const Person = ({ person }) => (); | |||
export const Person = ({ person }) => { | |||
const newVariable = person.sex === 'm' ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not a mistake but in the future try to use more descriptive vars names. for instance, here it could be partnersInfo
or something. It is a good practice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're doing amazing, keep it up!
DEMO LINK