https://github.com/unlight/custom-history
Tiny hash history implemenation for preact
https://github.com/unlight/custom-history
history-management preact routing
Last synced: 7 months ago
JSON representation
Tiny hash history implemenation for preact
- Host: GitHub
- URL: https://github.com/unlight/custom-history
- Owner: unlight
- License: mit
- Created: 2018-03-06T12:57:35.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T20:57:40.000Z (almost 8 years ago)
- Last Synced: 2025-06-10T12:08:34.525Z (8 months ago)
- Topics: history-management, preact, routing
- Language: TypeScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 = () =>
;
render(, document.body);
```
## CHANGELOG
See [CHANGELOG](CHANGELOG.md)