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/content/learn/reusing-logic-with-custom-hooks.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -837,11 +837,13 @@ Every time your `ChatRoom` component re-renders, it passes the latest `roomId` a
837
837
838
838
### Passing event handlers to custom Hooks {/*passing-event-handlers-to-custom-hooks*/}
839
839
840
-
<Wip>
840
+
<Canary>
841
841
842
-
This section describes an **experimental API that has not yet been released** in a stable version of React.
842
+
**The `useEffectEvent`API is currently only available in React’s Canary and Experimental channels.**
843
843
844
-
</Wip>
844
+
[Learn more about React’s release channels here.](/community/versioning-policy#all-release-channels)
845
+
846
+
</Canary>
845
847
846
848
As you start using `useChatRoom` in more components, you might want to let components customize its behavior. For example, currently, the logic for what to do when a message arrives is hardcoded inside the Hook:
0 commit comments