https://github.com/adenugbamichael/songs-redux
https://github.com/adenugbamichael/songs-redux
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adenugbamichael/songs-redux
- Owner: adenugbamichael
- Created: 2023-04-04T07:34:53.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-07T17:39:41.000Z (about 2 years ago)
- Last Synced: 2025-01-24T21:31:58.271Z (4 months ago)
- Language: JavaScript
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# songs
#### The mapStateToProps function was updated to communicate the favoriteTitle piece of state into the component
#### Because the mapStateToProps function is now returning an object with a favoriteTitle property, the React component now has access to a prop of this.props.favoriteTitle
#### The mapping function inside of renderList compares the title of the current song it is iterating over to this.props.favoriteTitle