You also need an <img />
tag on the page to display the resulting image that is generated by the back end. The src
attribute of this image can be stored in another useState()
hook variable.
useState()
variable called imgUrl
to hold the url of the created image, and pass this value to a new <img />
tag on the page.