Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonpachucki committed Aug 22, 2023
1 parent c457862 commit e78efc4
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/components/Person/Person.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,16 @@ export const Person = (props) => {
return (
<section className="Person">
<h2 className="Person__name">
My name is
{' '}
{name}
{`My name is ${name}`}
</h2>
{age && (
<p className="Person__age">
I am
{' '}
{age}
{`I am ${age}`}
</p>
)}
{isMarried ? (
<p className="Person__partner">
{partnerName}
{' '}
is my
{' '}
{partnerRole}
{`${partnerName} is my ${partnerRole}`}
</p>
) : (
<p className="Person__partner">I am not married</p>
Expand Down

0 comments on commit e78efc4

Please sign in to comment.