An attempt to make React work with the HTML5 canvas library. The goal is to have similar declarative markup as normal React and to have similar data-flow model.
react-konva is not supported in React Native environment.
Currently you can use all
Konva nodes and shapes as React components and all
Konva events are supported on them in same way.
Note: you can find a lot of demos and examples of using Konva there: https://konvajs.org/. Really, just go there and take a look what Konva can do for you. You will be able to do the same with react-konva too.
react-konva is like DOM for
npm install react-konva konva --save
react-canvas is a completely
different react plugin. It allows you to draw DOM-like objects (images, texts)
on canvas element in very performant way. It is NOT about drawing graphics, but
react-konva is exactly for drawing complex graphics on
<canvas> element from
react-art allows you to draw graphics on
a page. It also supports SVG for output. But it has no support of events of
Vanilla canvas can is faster because when you use
react-konva you have two layers of abstractions: (1)
Konva framework is on top of canvas and (2)
React is on top of
Konva. For many applications is performance is still very good. The purpose of
react-konva is to reduce the complexity of the application and use well-known declarative way for drawing on canvas.