0.1.0 • Published 5 years ago

jr-preact-router-mini v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Router mini for preact

##how to use: <PathRouter/> component will check browser location and will change own state (show/hide) if path match or not.

somewhere before start render the whole App

import router from 'preact-router-mini';
...

route.startRouting();
import {PathRouter} from 'preact-router-mini';
...
//somewhere in render() method of component
    <PathRouter path="/">
        <Login/>
    </PathRouter>
    <PathRouter path="/dash">
        <Dashboard/>
    </PathRouter>

licence: MIT, dudiq 2018

0.1.0

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago