frint-router-component-handlers

5.7.2 • Public • Published

frint-router-component-handlers

npm

Router component handlers package of Frint


Guide

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.

Installation

With npm:

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

API

createLinkHandler

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
  2. app (Object): app instance
  3. component (Object): Link component instance

createRouteHandler

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
  2. app (Object): app instance
  3. component (Object): Route component instance

createSwitchHandler

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
  2. app (Object): app instance
  3. component (Object): Switch component instance

Dependencies (1)

Dev Dependencies (4)

Package Sidebar

Install

npm i frint-router-component-handlers

Weekly Downloads

100

Version

5.7.2

License

MIT

Unpacked Size

57.4 kB

Total Files

14

Last publish

Collaborators

  • jbaudin
  • rmachado-travix
  • mmirandaalex
  • fahad19
  • markvincze
  • viacheslaff