Exercise 1.2

This commit is contained in:
Augusto Gunsch 2022-06-12 11:39:05 +02:00
parent 5c1120092e
commit bf5349aea3
1 changed files with 7 additions and 3 deletions

View File

@ -2,11 +2,15 @@ const Header = (props) => (
<h1>{props.course}</h1> <h1>{props.course}</h1>
) )
const Part = (props) => (
<p>{props.part} {props.exercise}</p>
)
const Content = (props) => ( const Content = (props) => (
<div> <div>
<p>{props.part1} {props.exercise1}</p> <Part part={props.part1} exercise={props.exercise1} />
<p>{props.part2} {props.exercise2}</p> <Part part={props.part2} exercise={props.exercise2} />
<p>{props.part3} {props.exercise3}</p> <Part part={props.part3} exercise={props.exercise3} />
</div> </div>
) )