@p5-wrapper/react
Version:
A wrapper component that allows you to utilise P5 sketches within React apps.
5 lines (4 loc) • 341 B
TypeScript
import { type MutableRefObject } from "react";
import { type P5CanvasInstance } from "../contracts/P5CanvasInstance";
import { type SketchProps } from "../contracts/SketchProps";
export declare function removeCanvasInstance<Props extends SketchProps = SketchProps>(canvasInstanceRef: MutableRefObject<P5CanvasInstance<Props> | null>): void;