traintocode

Adding Image Result

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.

Exercise
Create a new useState() variable called imgUrl to hold the url of the created image, and pass this value to a new <img /> tag on the page.
    You cannot do the coding exercises on this device, visit this page on a larger screen.
    App.tsx
    Loading...