top | item 43413272

(no title)

probabletrain | 11 months ago

I've used PixiJS and react-pixi-fiber to write a declarative 2D WebGL renderer in React with excellent results. PixiJS also has a Canvas2D fallback when WebGL isn't available. I wonder how this compares.

discuss

order

solardev|11 months ago

Konva is much easier to use for simpler apps, especially combined with React. You basically define some shapes similarly to how you would declare any component, pass props and event handlers to it, and it just magically works.

Pixi is lower level. It takes more scaffolding to get to the same level of functionality. But it can be more performant for some draw intensive operations. Not that Konva is particularly slow though.

recroad|11 months ago

PixiJS is too low level for anyone who wants to get something up quickly. For example, you have to implement your own dragging code (ew).