Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Olejnik authored Apr 13, 2022
1 parent e593c98 commit 573f8c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ const [AppEventProvider, useAppEvent, appEvent] = events(...)

and then
```jsx
// 💪 Get substate
// 🗣️ Dispatch event
appEvent.dispatch('buttonClicked', 'Hello Allice!')

// 🤌 Subscribe and listen on new events
// 👂 Subscribe and listen on new events
const subscriber = appEvent.subscribe({
buttonClicked: (payload: string) => console.log(payload)
})
Expand Down

0 comments on commit 573f8c1

Please sign in to comment.