Define a component responsible for formatting a single course called Course.
The component structure of the application can be, for example, the following:
App
Course
Header
Content
Part
Part
...
Hence, the Course component contains the components defined in the previous part, which are responsible for rendering the course name and its parts.
The rendered page can, for example, look as follows: Hence, the Course component contains the components defined in the previous part, which are responsible for rendering the course name and its parts.
The rendered page can, for example, look as follows:
Show also the sum of the exercises of the course.
If you haven't done so already, calculate the sum of exercises with the array method reduce.
Let's extend our application to allow for an arbitrary number of courses.