Router component handlers package of Frint
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.
ComponentHandler
(Object
): framework specific component handler implementing common API to work with component
app
(Object
): app instancecomponent
(Object
): Link
component instancecreateRouteHandler(ComponentHandler, app, component)
Method for creating handler for Route
component.
ComponentHandler
(Object
): framework specific component handler implementing common API to work with component
app
(Object
): app instancecomponent
(Object
): Route
component instancecreateSwitchHandler(ComponentHandler, app, component)
Method for creating handler for Switch
component.
ComponentHandler
(Object
): framework specific component handler implementing common API to work with component
app
(Object
): app instancecomponent
(Object
): Switch
component instance