This week we practiced React and creating components by using data from Spotify. We built a responsive page which shows new album and single releases.
The first problem we encountered was knowing where (in which file) to put what code. But after some research it was figured out. We made a quick sketch in Figma for what containers (components) we wanted to have and how to connect them. Then we started building by fetching the pictures and artists/albums from the data file provided. It was straight forward, except from how to fetch several artists from one item, which we struggeled with a bit. Eventually solved it by using the map-method and a ternary operator.