0.0.1 • Published 7 years ago

preact-router-hash v0.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

preact-router

Usage Example

import Router from 'preact-router';
import { h, render } from 'preact';
/** @jsx h */

const Main = () => (
	<Router hashHistory={true}>
		<Home path="/" />
		<About path="/about" />
		<Search path="/search/:query" />
	</Router>
);

render(<Main />, document.body);

Everything the same as preact-router. Add hashHistory to Router to test ..

0.0.1

7 years ago

2.5.5

7 years ago

2.5.4

7 years ago

2.5.3

7 years ago

2.5.1

7 years ago

2.5.2

7 years ago