useEvent
Bind event to current fork instance to use in dom event handlers. Used only with ssr, in application without forks useEvent will do nothing
useEvent(unit)#
Arguments
Returns
(Function): Function to pass to event handlers. Will trigger given unit in current scope
Example#
useEvent(shape)#
Arguments
shapeObject or array of (Event or Effect): Events or effects as values which will be bound to the currentscope
Returns
(Object or Array): List of functions with the same names or keys as argument to pass to event handlers. Will trigger given unit in current scope