Exercise 1.2
This commit is contained in:
parent
5c1120092e
commit
bf5349aea3
|
@ -2,11 +2,15 @@ const Header = (props) => (
|
|||
<h1>{props.course}</h1>
|
||||
)
|
||||
|
||||
const Part = (props) => (
|
||||
<p>{props.part} {props.exercise}</p>
|
||||
)
|
||||
|
||||
const Content = (props) => (
|
||||
<div>
|
||||
<p>{props.part1} {props.exercise1}</p>
|
||||
<p>{props.part2} {props.exercise2}</p>
|
||||
<p>{props.part3} {props.exercise3}</p>
|
||||
<Part part={props.part1} exercise={props.exercise1} />
|
||||
<Part part={props.part2} exercise={props.exercise2} />
|
||||
<Part part={props.part3} exercise={props.exercise3} />
|
||||
</div>
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue