chore: change @medusajs/medusa-react to medusa-react (#1083)
Co-authored-by: octalpixel <mithushan>
This commit is contained in:
1 parent
1c601a7340
commit
821ad18eb7
1 file changed
+4
-4
@@ -9,9 +9,9 @@ The library uses [react-query](https://react-query.tanstack.com/overview) as a s
|
|||||||
In order to install the package, run the following
|
In order to install the package, run the following
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm install @medusajs/medusa-react react-query
|
npm install medusa-react react-query
|
||||||
# or
|
# or
|
||||||
yarn add @medusajs/medusa-react react-query
|
yarn add medusa-react react-query
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quick Start
|
## Quick Start
|
||||||
@@ -62,7 +62,7 @@ The hooks exposed by `medusa-react` fall into two main categories: queries and m
|
|||||||
```jsx
|
```jsx
|
||||||
// ./my-storefront.tsx
|
// ./my-storefront.tsx
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { useProducts } from "@medusajs/medusa-react"
|
import { useProducts } from "medusa-react"
|
||||||
|
|
||||||
const MyStorefront = () => {
|
const MyStorefront = () => {
|
||||||
const { products, isLoading } = useProducts()
|
const { products, isLoading } = useProducts()
|
||||||
@@ -125,7 +125,7 @@ type QueryReturnType = APIResponse &
|
|||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { useCreateCart } from "@medusajs/medusa-react"
|
import { useCreateCart } from "medusa-react"
|
||||||
|
|
||||||
const CreateCartButton = () => {
|
const CreateCartButton = () => {
|
||||||
const createCart = useCreateCart()
|
const createCart = useCreateCart()
|
||||||
|
|||||||
Reference in new issue
Block a user