preact-router-hash
v0.0.1
Published
Add hashHistory to preactRouter.
Readme
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 ..
