completed exercise 1.2
This commit is contained in:
parent
c118246961
commit
3bcd98dd10
1 changed files with 6 additions and 1 deletions
|
|
@ -2,11 +2,16 @@ const Header = (props) => {
|
||||||
return <h1>{props.course}</h1>
|
return <h1>{props.course}</h1>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Part = (props) => {
|
||||||
|
return <p>{props.partName} {props.exerciseCount}</p>
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const Content = (props) => {
|
const Content = (props) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{props.sections.map((section) => {
|
{props.sections.map((section) => {
|
||||||
return <p>{section.part} {section.exerciseCount}</p>
|
return <Part partName={section.part} exerciseCount={section.exerciseCount}/>
|
||||||
})}
|
})}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue