---
title: "Hooks"
description: "The DHIS2 Application Runtime supports React Hooks (introduced in React 16.8). The following hooks are supported:"
url: https://developers.dhis2.org/docs/app-runtime/hooks/
source: https://github.com/dhis2/app-runtime/tree/master/docs/hooks/README.md
---

# Hooks

The DHIS2 Application Runtime supports [React Hooks](https://reactjs.org/docs/hooks-intro.html) (introduced in React 16.8). The following hooks are supported:

- [**useConfig**](useConfig) - Access the raw application configuration object
- [**useDataQuery**](useDataQuery) - Fetch data from the DHIS2 Core server API without worrying about HTTP requests!
- [**useDataMutation**](useDataMutation) - Mutate resources in the DHIS2 Core server API without worrying about HTTP requests!
- [**useDataEngine**](useDataEngine) _(Advanced)_ - Access the underlying [Data Engine](../advanced/DataEngine) instance
- [**useAlert**](useAlert) - Add an alert to the central alerts-context
- [**useAlerts**](useAlerts) - Read the alerts from the alerts-context
- [**useCurrentUserInfo**](useCurrentUserInfo) - Access the current authenticated DHIS2 user's information

While these Hooks are incredibly powerful and usually preferable, some [Components](https://developers.dhis2.org/docs/app-runtime/components) are also provided which conveniently wrap their corresponding Hooks.
