-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
React Key Concepts - Second Edition
By :
With this and the previous chapters, you now have enough basic knowledge to build truly reusable components.
Below, you will find an activity that allows you to apply all the knowledge, including the new props knowledge, you have acquired so far.
This activity builds upon Activity 2.2, Creating a React App to Log Your Goals for This Book, from the previous chapter. If you followed along there, you can use your existing code and enhance it by adding props. Alternatively, you can also use the solution provided as a starting point that is accessible at the following link: https://github.com/mschwarzmueller/book-react-key-concepts-e2/tree/02-components-jsx/activities/practice-2.
The aim of this activity is to build reusable GoalItem components that can be configured via props. Every GoalItem component should receive and output a goal title and a short description text, with extra information...