2025-05-20 16:42:42 +02:00
|
|
|
import Course from "./components/Course";
|
2025-05-20 16:21:42 +02:00
|
|
|
|
|
|
|
|
const App = () => {
|
2025-05-20 17:08:05 +02:00
|
|
|
const courses = [
|
|
|
|
|
{
|
|
|
|
|
name: "Half Stack application development",
|
|
|
|
|
sections: [
|
|
|
|
|
{
|
|
|
|
|
part: "Fundamentals of React",
|
|
|
|
|
exerciseCount: 10,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
part: "Using props to pass data",
|
|
|
|
|
exerciseCount: 7,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
part: "State of a component",
|
|
|
|
|
exerciseCount: 14,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
part: "An extra part I added just like that",
|
|
|
|
|
exerciseCount: 3,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Quarter Stack application development",
|
|
|
|
|
sections: [
|
|
|
|
|
{
|
|
|
|
|
part: "Fundamentals of Vanilla",
|
|
|
|
|
exerciseCount: 10,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
];
|
2025-05-20 16:21:42 +02:00
|
|
|
|
|
|
|
|
return (
|
2025-05-20 16:42:42 +02:00
|
|
|
<>
|
2025-05-20 17:08:05 +02:00
|
|
|
{courses.map((course) => (
|
|
|
|
|
<Course course={course} />
|
|
|
|
|
))}
|
2025-05-20 16:42:42 +02:00
|
|
|
</>
|
2025-05-20 16:24:28 +02:00
|
|
|
);
|
|
|
|
|
};
|
2025-05-20 16:21:42 +02:00
|
|
|
|
2025-05-20 16:24:28 +02:00
|
|
|
export default App;
|