How could we load a local image on a canvas?
问题 Hello and thank you for your time reading this question: I was trying to do an excercise to learn React, and because of I recently did a code in JS to load a file from local, an image, into a canvas, and then when user clicks on it circles are drawn; I tryed to do the same in React. Here is the JS excercise: https://codereview.stackexchange.com/questions/186526/read-an-image-file-into-a-canvas-and-display-click-coordinates I have created a canvas in Canvas' component's render(), and after