0.0.1 • Published 7 years ago
preact-router-hash v0.0.1
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 ..