MLS-DreamMakers/random-users-app

Stretch 2. A user can favorite specific user profiles, storing them locally (e.g., in localStorage) to persist across sessions.

Opened this issue · 0 comments

Functionality

A user can favorite specific user profiles, storing them locally (e.g., in localStorage) to persist across sessions

Favorite Button Setup

  • Add a heart icon or button next to each user profile that users can click to favorite/unfavorite

Local Storage Handling

  • When the favorite button is clicked, toggle the favorite status (e.g., change color or icon)
  • Use localStorage to store an array of favorite user IDs or profile data

On Page Load

  • Retrieve data from localStorage to display which users are already favorited