Component handlers package for Frint
npm install frint-component-handlers
> Component handlers package of Frint
- Guide
- Installation
- API
- RegionHandler
- ObserveHandler
- RegionService
---
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).
#### Arguments
1. props (Object)
#### Returns
void.
> getProps$()
#### Returns
Observable: of emitted props from the Region component.
> getdata$()
#### Returns
Observable: of the data` prop from the Region component.