Function: useApplication()
useApplication():
Application
Defined in: render.tsx:42
Hook to access the GTK Application instance.
Must be called within a component rendered by render. Throws an error if called outside the application context.
Returns
Application
The GTK Application instance
Example
const MyComponent = () => {
const app = useApplication();
return <GtkLabel label={app.applicationId} />;
};
See
ApplicationContext for the underlying context