Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/unlight/custom-history

Tiny hash history implemenation for preact
https://github.com/unlight/custom-history

history-management preact routing

Last synced: about 1 month ago
JSON representation

Tiny hash history implemenation for preact

Awesome Lists containing this project

README

        

# custom-history
Custom hash history implemenation for preact

## INSTALL
```
npm i -S custom-history
```

## USAGE
```ts
import { Router, Link } from 'preact-router';
import { h, render } from 'preact';
import { createHashHistory } from 'custom-history';

const Home = (props) =>

Home

;
const About = (props) =>

About

;
const Search = (props) =>

Search {JSON.stringify(props)}

;

const App = () =>


| link home |
| home |
| about |
| search |







;

render(, document.body);
```

## CHANGELOG
See [CHANGELOG](CHANGELOG.md)