Reactjs – Use the return value of a function as the src of a image tag in React
In my React project, I need to send a POST request to an API, the API will respond with an URL, and I want to use this URL as the src attribute of an image tag. The following is the…