Router component handlers package for Frint
npm install frint-router-component-handlers
> Router component handlers package of Frint
- Guide
- Installation
- API
- createLinkHandler
- createRouteHandler
- createSwitchHandler
---
This package is aimed at enabling other reactive rendering/templating libraries integrate with FrintJS router, and not to be used directly by developers in their applications.
For example, take a look at frint-router-react for its implementation using this package internally.
With npm:
```
$ npm install --save frint-router-component-handlers
> createLinkHandler(ComponentHandler, app, component)
Method for creating handler for Link component.
#### Arguments
1. ComponentHandler (Object): framework specific component handler implementing common API to work with component app
2. (Object): app instancecomponent
3. (Object): Link component instance
> createRouteHandler(ComponentHandler, app, component)
Method for creating handler for Route component.
#### Arguments
1. ComponentHandler (Object): framework specific component handler implementing common API to work with component app
2. (Object): app instancecomponent
3. (Object): Route component instance
> createSwitchHandler(ComponentHandler, app, component)
Method for creating handler for Switch component.
#### Arguments
1. ComponentHandler (Object): framework specific component handler implementing common API to work with component app
2. (Object): app instancecomponent
3. (Object): Switch` component instance