I've been having some problems with figuring out how to import an image dynamically in react. After some research, I learned that the require() function is needed, so this is what I have tried so far:
<img src={require(`../../assets/${companyName}.png`)}></img>
But my web page is still producing a blank image. Is there any guidance or tips I can receive on this? I am using the create-react-app build for reference. Thanks so much in advance!