@pixi/react
Version:
Write PixiJS applications using React declarative style.
6 lines (5 loc) • 452 B
TypeScript
import { type Container, type Filter } from 'pixi.js';
import { type HostConfig } from '../typedefs/HostConfig';
import { type InstanceState } from '../typedefs/InstanceState';
/** Create the instance with the provided sate and attach the component to it. */
export declare function prepareInstance<T extends Container | Filter | HostConfig['instance']>(component: T, state?: Partial<InstanceState>): import("../typedefs/PixiReactNode").PixiReactNode;