2.4 done
This commit is contained in:
parent
f582482a3d
commit
1ab1fceab0
1 changed files with 35 additions and 22 deletions
|
|
@ -1,31 +1,44 @@
|
||||||
import Course from "./components/Course";
|
import Course from "./components/Course";
|
||||||
|
|
||||||
const App = () => {
|
const App = () => {
|
||||||
const course = {
|
const courses = [
|
||||||
name: "Half Stack application development",
|
{
|
||||||
sections: [
|
name: "Half Stack application development",
|
||||||
{
|
sections: [
|
||||||
part: "Fundamentals of React",
|
{
|
||||||
exerciseCount: 10,
|
part: "Fundamentals of React",
|
||||||
},
|
exerciseCount: 10,
|
||||||
{
|
},
|
||||||
part: "Using props to pass data",
|
{
|
||||||
exerciseCount: 7,
|
part: "Using props to pass data",
|
||||||
},
|
exerciseCount: 7,
|
||||||
{
|
},
|
||||||
part: "State of a component",
|
{
|
||||||
exerciseCount: 14,
|
part: "State of a component",
|
||||||
},
|
exerciseCount: 14,
|
||||||
{
|
},
|
||||||
part: "An extra part I added just like that",
|
{
|
||||||
exerciseCount: 3,
|
part: "An extra part I added just like that",
|
||||||
},
|
exerciseCount: 3,
|
||||||
],
|
},
|
||||||
};
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Quarter Stack application development",
|
||||||
|
sections: [
|
||||||
|
{
|
||||||
|
part: "Fundamentals of Vanilla",
|
||||||
|
exerciseCount: 10,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Course course={course}/>
|
{courses.map((course) => (
|
||||||
|
<Course course={course} />
|
||||||
|
))}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue