UNPKG

@pixi/react

Version:

Write PixiJS applications using React declarative style.

1 lines 522 B
{"version":3,"file":"Context.mjs","sources":["../../src/components/Context.ts"],"sourcesContent":["import { createContext } from 'react';\nimport { type ApplicationState } from '../typedefs/ApplicationState';\n\nexport const Context = createContext<ApplicationState>({} as ApplicationState);\n\nexport const ContextProvider = Context.Provider;\nexport const ContextConsumer = Context.Consumer;\n"],"names":[],"mappings":";;;AAGa,MAAA,OAAA,GAAU,aAAgC,CAAA,EAAsB;AAEtE,MAAM,kBAAkB,OAAQ,CAAA;AAChC,MAAM,kBAAkB,OAAQ,CAAA;;;;"}