Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(image): Use hook inside of function component (#40096)
The example broke the [Rules of Hooks](https://reactjs.org/warnings/invalid-hook-call-warning.html#:~:text=Hooks%20can%20only%20be%20called%20inside%20the%20body%20of%20a%20function%20component.) by calling the hook outside of the function component. Co-authored-by: JJ Kasper <jj@jjsweb.site>
- Loading branch information