diff --git a/src/App.jsx b/src/App.jsx index dcf8509c8..961371c0d 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,5 +1,6 @@ import React from 'react'; import './App.scss'; +import { Person } from './components/Person/Person'; export const misha = { name: 'Misha', @@ -25,21 +26,11 @@ export const alex = { export const App = () => (
I am 37
-Natasha is my wife
-Maksym is my husband
-I am 25
-I am not married
-{`I am ${age}`}
} + + {!isMarried && (I am not married
)} + + {isMarried && (sex === 'm' + ? ({`${partnerName} is my wife`}
) + : ({`${partnerName} is my husband`}
))} + +