View Code? Open in Web Editor
NEW
This project forked from mate-academy/react_goods-selector
JavaScript 70.30%
HTML 27.70%
CSS 2.00%
react_goods-selector's Introduction
- Render a header (
h1
) initially saying Selected good: -
- Render a list of goods.
- Implement ability to select a good by clicking on it. Use buttons styled as a plain text with
cursor: pointer
.
- Add a special class to the selected good in the list (e.g. highlight it with a yellow color).
- The header should show the name of the selected good
- Add clear button (
X
) next to the header to clear the selection
- (*) Implement multiple selection. A button click with
ctrl
pressed should toggle selection of a clicked item.
react_goods-selector's People
Contributors