> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/dashboard-plugin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/dashboard-plugin/api-and-gui/api/withuser.md).

# withUser

withUser is a helper HOC that will pass the current user object to the composed component as a property

## How to use

```jsx
import { Plugin } from '@root'

const MyCustomComponent = props => {
    return (
        <div>
            <p>username: {props.user.name}</p>
        </div>
    )
}

export default Plugin.withUser(MyCustomComponent)
```
