Component handlers package of Frint
This package is aimed at enabling other reactive rendering/templating libraries integrate with FrintJS, and not to be used directly by developers in their applications.
For example, take a look at frint-react for its implementation using this package internally.
With npm:
$ npm install --save frint-component-handlers
RegionHandler
Handler for creating Region component.
ObserveHandler
Handler for creating observe higher-order component.
RegionService
If your App wishes to receive data coming from the Region component it's rendered in, RegionService is your way to access it.
Methods exposed by the instance:
emit(props)
The props that need to be emitted (Region component uses it internally).
props (Object)void.
getProps$()
Observable: of emitted props from the Region component.
getdata$()
Observable: of the data prop from the Region component.