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 course = 'Half Stack application development'
|
||||
const part1 = {
|
||||
name: 'Fundamentals of React',
|
||||
exercises: 10
|
||||
}
|
||||
const part2 = {
|
||||
name: 'Using props to pass data',
|
||||
exercises: 7
|
||||
}
|
||||
const part3 = {
|
||||
name: 'State of a component',
|
||||
exercises: 14
|
||||
}
|
||||
const parts = [
|
||||
{
|
||||
name: 'Fundamentals of React',
|
||||
exercises: 10
|
||||
},
|
||||
{
|
||||
name: 'Using props to pass data',
|
||||
exercises: 7
|
||||
},
|
||||
{
|
||||
name: 'State of a component',
|
||||
exercises: 14
|
||||
}
|
||||
]
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Header course={course} />
|
||||
<Content part={[part1,part2,part3]} />
|
||||
<Total part={[part1,part2,part3]} />
|
||||
<Content part={parts} />
|
||||
<Total part={parts} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user