Skip to content

Commit af17624

Browse files
Merge pull request #4 from stainless-code/fix/readme
fix: README
2 parents 057bed4 + f39272c commit af17624

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.changeset/sweet-glasses-rescue.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@stainless-code/react-custom-events": patch
3+
---
4+
5+
fix `README.md`

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ Install the library via npm or yarn:
1818

1919
```bash
2020
# npm
21-
npm i @stainless/react-custom-events
21+
npm i @stainless-code/react-custom-events
2222

2323
# yarn
24-
yarn add @stainless/react-custom-events
24+
yarn add @stainless-code/react-custom-events
2525

2626
# pnpm
27-
pnpm add @stainless/react-custom-events
27+
pnpm add @stainless-code/react-custom-events
2828

2929
# bun
30-
bun add @stainless/react-custom-events
30+
bun add @stainless-code/react-custom-events
3131
```
3232

3333
---
@@ -72,7 +72,7 @@ This hook listens for custom events and triggers a callback when the event occur
7272
### Creating a Custom Event
7373

7474
```typescript
75-
import { createCustomEvent } from "@stainless/react-custom-events";
75+
import { createCustomEvent } from "@stainless-code/react-custom-events";
7676

7777
// Define a custom event hook with a typed payload
7878
const useMyEvent = createCustomEvent<{ age: number }>("myCustomEvent");

0 commit comments

Comments
 (0)