strikejs-router
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published

strikejs-router

A declarative router for ReactJS applications written in TypeScript.

Examples

Example 1

Simple application

    import {Router,createDataStore,hashHistory,Route,AuthRoute,Redirect} from 'strikejs-router';
    import {React} from 'react'; 
    import {ReactDOM} from 'react-dom'; 


    var el = document.createElement('div');
    el.id = "RouterContainer";
    document.querySelector('body').appendChild(el);


    ReactDOM.render(
            <Router history={hashHistory()}>
                <Route path="/note/:id" component={C1} props={C1Props} />
                <Route path="/app/:id" component={C2} props={C2Props} />
                <Route path="/gool">
                    <Route path="zeta" component={C3} props={C3Props} />
                </Route>
            </Router>,
            el);



Readme

Keywords

none

Package Sidebar

Install

npm i strikejs-router

Weekly Downloads

0

Version

6.0.0

License

ISC

Last publish

Collaborators

  • geratokyo
  • suhail