hyperapp-hash-router
v0.1.0
Published
@hyperapp/router compatible router library based on location.hash
Downloads
5
Readme
hyperapp-hash-router
@hyperapp/router compatible router library based on location.hash
.
Installation
If your project is using npm, you can install hyperapp-hash-router package by npm command:
npm install --save hyperapp-hash-router
Distribution files
- dist/index.js - The CommonJS version of this package. (default)
- dist/index.mjs - The ES Modules version of this package.
- dist/hyperapp-hash-router.js, dist/hyperapp-hash-router.min.js - The UMD version of this package. This version exports itself to
window.hyperappHashRouter
.
Usage
import { Link, Route, Switch, Redirect, location } from "hyperapp-hash-router"
hyperapp-hash-router is compatible with @hyperapp/router so you can use these objects as described in @hyperapp/router's README document.