-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
https://github.com/sikandar47/jamming/blob/master/src/Components/App/App.js#L59-L63
Nice job remembering that the Spotify.search() method returns a Promise and properly chaining a .then() before setting your state 👍
Consider renaming the tracks variable to searchResults and then using ES6's property/value shorthand syntax here:
this.setState({ searchResults })You can use this whenever you need an object whose key is the same its value (i.e. { searchResults: searchResults } ) and you might find it makes your code more terse.
Metadata
Metadata
Assignees
Labels
No labels