Skip to content

Instantly share code, notes, and snippets.

@vojto
Created March 5, 2020 14:04
Show Gist options
  • Save vojto/015dadccb92fcc485cb9609334eff0ee to your computer and use it in GitHub Desktop.
Save vojto/015dadccb92fcc485cb9609334eff0ee to your computer and use it in GitHub Desktop.
import React from "react";
import {Circle} from "./Primitives";
import {Container} from "@inlet/react-pixi";
export const NodeView: React.FC<{node: Node}> = (props) => {
return (
<Container x={props.node.x} y={props.node.y}>
<Circle x={0} y={0} radius={20} color={0x0000ff} />
</Container>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment