Relative Content

Tag Archive for javascriptreactjsimage

React Importing Images and Passing them through a prop is not working

I am trying to import images and place them into an array and then pass that array to a prop for a component to display different images. Once I pass the array to the component, items accessed from the array are undefined (and therefore I cannot display them) but console logging the array shows an array of objects being outputted (and not the strings that they should be). Where have I gone wrong?