Favourite a sock in the SocksListing
Opened this issue · 1 comments
Laoujin commented
File SockFavourite.tsx
Solid star: <i className="fas fa-star" />
Hollow star: <i className="far fa-star" />
Add an event handler to the star icon and toggle between solid / hollow.
Create a PR per Task
- Save the solid/hollow state in component state
- Implemented with a Component class
- Implemented with hooks
- Persist the favorited socks with
ProductRepository.favouriteSock
Laoujin commented
Sebastian