Music Favorites App Welcome to the Music Favorites App! This project was created as an exercise to deepen understanding of the useState hook in React. The app displays a list of dummy music cards on the home page, and allows users to add their favorite songs to a favorites list, which is updated dynamically in both the navbar and the individual music cards.
Features -Display a collection of dummy music cards on the home page. -Each music card contains information about a song, such as the title, artist, and album cover. U-sers can click on the "Add to Favorites" button on any music card to add it to their list of favorite songs. -The favorites list is displayed in the navbar, allowing users to see that how many song is added into the favourites -State management is handled using the useState hook, allowing for dynamic -updates to the favorites list without requiring a page refresh. Installation To run the Music Favorites App locally, follow these steps:
-Clone this repository to your local machine. -Navigate to the project directory in your terminal. -Run npm install to install the project dependencies. -Run npm run dev to start the development server. Open your web browser and navigate to http://localhost:5173 to view the app.
Technologies Used -React.js -useState hook
Usage Upon launching the app, you will be directed to the home page where you can see a collection of dummy music cards. Click on the "Add to Favorites" button on any music card to add it to your favorites list. Your favorites list will be updated dynamically in the navbar and on the individual music cards. Enjoy exploring the app and experimenting with the useState hook! Contributing Contributions to the Music Favorites App are welcome! If you have any suggestions for improvements or would like to report a bug, please open an issue or submit a pull request on GitHub.
License This project is licensed under the MIT License - see the LICENSE file for details.