UNPKG

@playcanvas/react

Version:

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

10 lines 420 B
import { createContext, useContext } from "react"; export const PointerEventsContext = createContext(null); export const usePointerEventsContext = () => { const context = useContext(PointerEventsContext); if (context === null) { throw new Error('usePointerEventsContext must be used within a PointerEventsContext.Provider'); } return context; }; //# sourceMappingURL=pointer-events-context.js.map