Class: UseReactEventHandler<IncomingEventType>
Class: UseReactEventHandler<IncomingEventType>
A useReact event handler for processing incoming events For single event handler.
Multiple event handlers will be processed by the router.
Template
The type representing the outgoing response.
Type Parameters
IncomingEventType
IncomingEventType
extends ReactIncomingEvent
= ReactIncomingEvent
The type representing the incoming event.
Implements
IEventHandler
<IncomingEventType
,MetaPage
<IncomingEventType
>>
Constructors
Constructor
new UseReactEventHandler<IncomingEventType>(options): UseReactEventHandler<IncomingEventType>;
Constructs a UseReactEventHandler
instance.
Parameters
options
The UseReactEventHandler options including blueprint.
blueprint
IBlueprint
Returns
UseReactEventHandler
<IncomingEventType
>
Methods
handle()
handle(): MetaPage<IncomingEventType>;
Handle an incoming event.
Returns
MetaPage
<IncomingEventType
>
The outgoing response.
Implementation of
IEventHandler.handle