> For the complete documentation index, see [llms.txt](https://docs.usegravity.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.usegravity.app/gravity-native/app-context.md).

# App Context

The AppContext is a higher-order component (HOC) that stores global objects and methods used throughout your application, such as:

* user credentials&#x20;
* [authentication methods](/gravity-native/authentication.md) (sign in, authorizeUser, signout)
* [notification banner](/gravity-native/components/notification.md) methods (show, hide)
* [modal](/gravity-native/components/modal.md) methods (show, hide)
* [handling errors](/gravity-native/handling-errors.md)

{% hint style="info" %}
The AppContext is located in **`/components/app`**
{% endhint %}

You can then use any of these methods anywhere in your application by importing the `AppContext` into your components.

```javascript
import { useContext } from 'react';
import { AppContext } from '~/components/lib'

export function Profile(props){

  const context = useContext(AppContext);
  context.handleError(err);

}
```
