Skip to main content

Variable: ApplicationContext

const ApplicationContext: Context<Application | null>

Defined in: render.tsx:22

React Context providing access to the GTK Application instance.

Use useApplication to access the application in components.

Example

const App = () => {
const app = useApplication();
console.log(app.applicationId);
return <GtkLabel label="Hello" />;
};