# frint-component-handlers

> Component handlers package for Frint

Latest version **5.7.2** (published 2018-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install frint-component-handlers
pnpm add frint-component-handlers
yarn add frint-component-handlers
bun add frint-component-handlers
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.7.2 |
| Published | 2018-09-11 |
| First published | 2017-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 35.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | FrintJS Authors |
| Maintainers | fahad19, froskie, jbaudin, markvincze, mmirandaalex, rbardini, rmachado-travix, viacheslaff |
| Keywords | frint |

## Links

- npm: https://www.npmjs.com/package/frint-component-handlers
- Repository: https://github.com/frintjs/frint
- Homepage: https://github.com/frintjs/frint/tree/master/packages/frint-component-handlers
- Issues: https://github.com/frintjs/frint/issues
- npm.io page: https://npm.io/package/frint-component-handlers

## Dependencies (2)

- [rxjs](https://npm.io/package/rxjs.md) ^5.5.0
- [lodash](https://npm.io/package/lodash.md) ^4.13.1

## Recent versions

- 5.7.2 (latest) — 2018-09-11
- 2.9.0-alpha.2d26e4d7 (canary) — 2017-09-26
- 5.7.1 — 2018-09-05
- 5.7.0 — 2018-08-06
- 5.6.1 — 2018-07-16
- 5.6.0 — 2018-07-13
- 5.5.0 — 2018-07-10
- 5.4.5 — 2018-06-25
- 5.4.4 — 2018-05-30
- 5.4.3 — 2018-04-06
- 5.4.2 — 2018-03-26
- 5.4.1 — 2018-02-21
- 5.4.0 — 2018-02-14
- 5.3.0 — 2018-01-16
- 5.2.1 — 2018-01-03
- … 24 more at https://npm.io/package/frint-component-handlers/versions

## README

# frint-component-handlers

[![npm](https://img.shields.io/npm/v/frint-component-handlers.svg)](https://www.npmjs.com/package/frint-component-handlers)

> Component handlers package of Frint

<!-- MarkdownTOC autolink=true bracket=round -->

- [Guide](#guide)
  - [Installation](#installation)
- [API](#api)
  - [RegionHandler](#regionhandler)
  - [ObserveHandler](#observehandler)
  - [RegionService](#regionservice)

<!-- /MarkdownTOC -->

---

# Guide

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.

## Installation

With [npm](https://www.npmjs.com/):

```
$ npm install --save frint-component-handlers
```

# API

## RegionHandler

> RegionHandler

Handler for creating `Region` component.

## ObserveHandler

> ObserveHandler

Handler for creating `observe` higher-order component.

## RegionService

> 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

> emit(props)

The props that need to be emitted (Region component uses it internally).

#### Arguments

1. `props` (`Object`)

#### Returns

`void`.

### getProps$

> getProps$()

#### Returns

`Observable`: of emitted props from the Region component.

### getData$

> getdata$()

#### Returns

`Observable`: of the `data` prop from the Region component.

---
_Source: https://npm.io/package/frint-component-handlers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
