docs: updated custom hooks section in Medusa React (#4566)

* docs: updated custom hooks section in Medusa React

* fix eslint errors
This commit is contained in:
Shahed Nasser
2023-07-20 15:20:10 +03:00
committed by GitHub
parent 4d326fbbdf
commit 6bc8b40a6b
47 changed files with 304 additions and 141 deletions
+3 -3
View File
@@ -291,11 +291,11 @@ export default CustomPage
## Querying and Mutating Data
You might need to interact with the Medusa backend from your admin route. To do so, you can utilize the [Medusa React package](../medusa-react/overview.md). It contains a collection of queries and mutation built on `@tanstack/react-query` that lets you interact with the Medusa backend.
You might need to interact with the Medusa backend from your admin route. To do so, you can utilize the [Medusa React package](../medusa-react/overview.mdx). It contains a collection of queries and mutation built on `@tanstack/react-query` that lets you interact with the Medusa backend.
:::note
Make sure to also install the Medusa React package first if youre intending to use it, as explained in the [Medusa React guide](../medusa-react/overview.md).
Make sure to also install the Medusa React package first if youre intending to use it, as explained in the [Medusa React guide](../medusa-react/overview.mdx).
:::
@@ -316,7 +316,7 @@ const CustomPage = () => {
export default CustomPage
```
You can also use `medusa-react` to interact with custom endpoints using the [createCustomAdminHooks utility function](../medusa-react/overview.md#custom-hooks).
You can also use `medusa-react` to interact with custom endpoints using the [createCustomAdminHooks utility function](../medusa-react/overview.mdx#custom-hooks).
---