Skip to content

Favourite a sock in the SocksListing #5

@Laoujin

Description

@Laoujin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershooksUsing the new Hooks feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions