- You are given an array of goods
- Display them as a list inside the
App(DON'T create additional components) - Add
h1initially sayingNo goods selected - Save a
selectedGoodin theApp. Let it beJamby default - The
h1should always show the name of the selected goodJam is selected - The selected good should be highlighted in the list (add CSS class with a background)
- Add a button
Selectnext to each good in the list - When you press the button the good becomes selected
- Don't show the button next to the selected good
- You can select another good by pressing its
Selectbutton - Add button
Xfor to theh1to clear the selection. (Setnull) - The clear button should not be visible if there is no selected good
- Implement the ability to select multiple goods (use
selectedGoodsArray) - Use functional
setStatedescribed in this video - Show
AddorRemoveinstead ofSelectbutton - All the selected goods should be listed in the
h1:No goods selectedJam is selectedCarrot, Jam and Eggs are selected