React basic 7 — Render a List from the API response
3 min readMay 28, 2020
In the previous post (React basic 6 — Use Axios Library to Fetch Data), we've got image data from the Unsplash API and stored it in the React state. This post covers the basic steps to render the response in a list, such as creating an array of JSX elements from the data array.
Creating a simple list component with map function to render those images
Map in javascript allows you to alter elements of an array and create a brand new array of these altered elements…