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: docs/wrapping-react/props.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,4 +154,49 @@ class EventHandlerComponent(MyBaseComponent):
154
154
155
155
```md alert info
156
156
# Custom event specs have a few use case where they are particularly useful. If the event returns non-serializable data, you can filter them out so the event can be sent to the backend. You can also use them to transform the data before sending it to the backend.
157
+
```
158
+
159
+
### Emulating Event Handler Behavior Outside a Component
160
+
161
+
In some instances, you may need to replicate the special behavior applied to
162
+
event handlers from outside of a component context. For example if the component
163
+
to be wrapped requires event callbacks passed in a dictionary, this can be
164
+
achieved by directly instantiating an `EventChain`.
165
+
166
+
A real-world example of this is the `onEvents` prop of
0 commit comments