0.1.0 • Published 6 years ago

hyperapp-hash-router v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

hyperapp-hash-router

NPM version Maintainability

@hyperapp/router compatible router library based on location.hash.

Demo

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.