Nice job using .map() and arrow functions' implicit return to get all of the track URIs in a single, concise line of code 👍
You should use .then() to reset the Playlist's state after the request is resolved. The user will probably not have any further use for the same playlist name and tracks after the playlist has been saved.
https://github.com/stefem/jammming/blob/master/src/components/App/App.js#L48-L51
Nice job using
.map()
and arrow functions' implicit return to get all of the track URIs in a single, concise line of code 👍You should use
.then()
to reset thePlaylist
's state after the request is resolved. The user will probably not have any further use for the same playlist name and tracks after the playlist has been saved.