Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/unlight/custom-history
- Owner: unlight
- License: mit
- Created: 2018-03-06T12:57:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T20:57:40.000Z (almost 7 years ago)
- Last Synced: 2024-12-15T23:35:54.697Z (about 1 month ago)
- Topics: history-management, preact, routing
- Language: TypeScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- 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)