Make 1.1 as it should be
This commit is contained in:
parent
2501cebcf6
commit
5c1120092e
|
@ -3,7 +3,11 @@ const Header = (props) => (
|
|||
)
|
||||
|
||||
const Content = (props) => (
|
||||
<p>{props.part} {props.exercise}</p>
|
||||
<div>
|
||||
<p>{props.part1} {props.exercise1}</p>
|
||||
<p>{props.part2} {props.exercise2}</p>
|
||||
<p>{props.part3} {props.exercise3}</p>
|
||||
</div>
|
||||
)
|
||||
|
||||
const Total = (props) => (
|
||||
|
@ -22,9 +26,7 @@ const App = () => {
|
|||
return (
|
||||
<div>
|
||||
<Header course={course} />
|
||||
<Content part={part1} exercise={exercises1} />
|
||||
<Content part={part2} exercise={exercises2} />
|
||||
<Content part={part3} exercise={exercises3} />
|
||||
<Content part1={part1} part2={part2} part3={part3} exercise1={exercises1} exercise2={exercises2} exercises3={exercises3} />
|
||||
<Total total={exercises1 + exercises2 + exercises3} />
|
||||
</div>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue