Create the following user interface using React!
- Run
npm install
in the root directory of the folder to install the necessary modules. (This might take some time depending on your internet speed) - Create the three components as seen in the image:
- Component for the
<Title>
- Component for the
<List>
- Component for a single
<ListItem>
.
- Component for the
- Add the 3
<ListItem>
as you see in the screenshot.
Bonus:
- You notice how using the
<ListItem>
component 3 times for theEggs, Milk, Rice
is not the ideal solution. What if we want to add more? If you finished early, use this page to learn about how you can go over arrays.