How to draw image on canvas with React?

获取Konva最新的信息

If you take a look into image tutorial and API docs you will see that you need to use window.Image instance as image attribute for Konva.Image. So you need to create and download it manually.

You can use brand new react hook use-image to handle loading of images or you can use life-circle methods of React and create your own custom component.

Next