Guest User

Untitled

a guest
Jul 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. console.log(artistsArray.name);
  2.  
  3. searchAlbums(){
  4. spotifyWebApi.searchAlbums(this.state.value)
  5. .then((response) => {
  6. return response.albums.items.map((t) => {
  7. return t.artists.map((artistsArray, index) => {
  8. this.render({
  9. render(){
  10. return (
  11. <div>
  12. <li key={artistsArray.name}>
  13. {artistsArray.name}
  14. </li>
  15. </div>
  16. )
  17. }
  18. })
  19. });
  20. });
  21. });
  22. }
  23.  
  24. <button class="btn btn-small" type="button" onClick={() => this.searchAlbums()}>Search</button>
Add Comment
Please, Sign In to add comment