pixi-react

set/get data structure

Usage no npm install needed!

<script type="module">
  import pixiReact from 'https://cdn.skypack.dev/pixi-react';
</script>

README

pixi-react

organize pixi object group like react style

installation

npm i --save-dev pixi-react

in the past

const c1 = new PIXI.Container();
const c2 = new PIXI.Container();
const c3 = new PIXI.Container();

c1.addChild(c2);
c1.addChild(c3);

now

class C1 extends PactComponent {
  render () {
    return (
      <c>
        <c/>
        <c/>
      </c>
    );
  }
}

how to dev

npm run build-w

npm run mocha-w