mirror of
https://github.com/10h30/fullstackopen.git
synced 2026-06-05 15:08:33 +09:00
Completed 1.4
This commit is contained in:
+16
-14
@@ -2,24 +2,26 @@ import React from 'react'
|
|||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const course = 'Half Stack application development'
|
const course = 'Half Stack application development'
|
||||||
const part1 = {
|
const parts = [
|
||||||
name: 'Fundamentals of React',
|
{
|
||||||
exercises: 10
|
name: 'Fundamentals of React',
|
||||||
}
|
exercises: 10
|
||||||
const part2 = {
|
},
|
||||||
name: 'Using props to pass data',
|
{
|
||||||
exercises: 7
|
name: 'Using props to pass data',
|
||||||
}
|
exercises: 7
|
||||||
const part3 = {
|
},
|
||||||
name: 'State of a component',
|
{
|
||||||
exercises: 14
|
name: 'State of a component',
|
||||||
}
|
exercises: 14
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Header course={course} />
|
<Header course={course} />
|
||||||
<Content part={[part1,part2,part3]} />
|
<Content part={parts} />
|
||||||
<Total part={[part1,part2,part3]} />
|
<Total part={parts} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user