<!--- useFocusWhenNavigate.stories.mdx --->

import { Meta } from '@storybook/addon-docs';

<Meta title="hooks/useFocusWhenNavigate" />

# useFocusWhenNavigate

This hook is used in order to focus the user on the page in the admin panel.

## Usage

```
import { useFocusWhenNavigate } from '@strapi/helper-plugin';
import { Main } from '@strapi/design-system';

const HomePage = () => {
  useFocusWhenNavigate();

  return (
    <Main>
      <h1>This is the homepage</h1>
    </Main>
  );
};
```
