Skip to content

Searching for tracks #2

@ghost

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions