Skip to content

API Reference / @gtkx/react / useApplication

Variable: useApplication

const useApplication: () => Gtk.Application

Defined in: react/dist/hooks/use-application.d.ts:7

Returns the Gtk.Application provided by the nearest Application ancestor, throwing if used outside one.

Returns

Gtk.Application

Released under the MPL-2.0 License.