UNPKG

@playcanvas/react

Version:

A React renderer for PlayCanvas – build interactive 3D applications using React's declarative paradigm.

11 lines (10 loc) 328 B
import { Application } from "playcanvas"; export declare const AppContext: import("react").Context<Application | null>; /** * This hook is used to get the application instance. * @returns {Application} app - The application instance. * * @example * const app = useApp(); */ export declare const useApp: () => Application;