Reactjs – Getting the "src" property of image elements
I'm building a product display component where the selected image is displayed as the main one. How do I get the source of each image in the useState? Should I pass it as a parameter to the function? I'm new…