You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pages/docs/chat/getting-started/react-native.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -824,7 +824,7 @@ You can also use the Ably CLI to enter the room from another client by running t
824
824
## Step 9: Send a reaction <aid="step-9"/>
825
825
826
826
Clients can send a reaction to a room to show their sentiment for what is happening, such as a point being scored in a sports game.
827
-
Ably Chat provides a [`useReactions()`](https://sdk.ably.com/builds/ably/ably-chat-js/main/typedoc/functions/chat-react.useReactions.html) hook to send and receive reactions in a room. These are short-lived (ephemeral) and are not stored in the room history.
827
+
Ably Chat provides a [`useRoomReactions()`](https://sdk.ably.com/builds/ably/ably-chat-js/main/typedoc/functions/chat-react.useRoomReactions.html) hook to send and receive reactions in a room. These are short-lived (ephemeral) and are not stored in the room history.
828
828
829
829
In your `ChatApp.tsx` file, add a new component called `ReactionComponent`, like so:
Copy file name to clipboardExpand all lines: src/pages/docs/chat/getting-started/react.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -783,7 +783,7 @@ You can also use the Ably CLI to enter the room from another client by running t
783
783
## Step 9: Send a room reaction <aid="step-9"/>
784
784
785
785
Clients can send a reaction to a room to show their sentiment for what is happening, such as a point being scored in a sports game.
786
-
Ably Chat provides a [`useReactions()`](https://sdk.ably.com/builds/ably/ably-chat-js/main/typedoc/functions/chat-react.useReactions.html) hook to send and receive reactions in a room. These are short-lived (ephemeral) and are not stored in the room history.
786
+
Ably Chat provides a [`useRoomReactions()`](https://sdk.ably.com/builds/ably/ably-chat-js/main/typedoc/functions/chat-react.useRoomReactions.html) hook to send and receive reactions in a room. These are short-lived (ephemeral) and are not stored in the room history.
787
787
788
788
In your `src/App.tsx` file, add a new component called `ReactionComponent`, like so:
0 commit comments