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

1.4.0 • Public • Published

react-router-lite

Similar to react-router but leaner.

Also you can provide any string as a route:

import {Provider, Switch, Route} from 'react-router-lite';

<Provider route={'/any/string/goes/here'}>
   <Switch>
      <Route match="/any/string" comp={() => <div>hello world</div>}>
   </Switch>
</Provider>

License

Unlicense — public domain.

Readme

Keywords

none

Package Sidebar

Install

npm i react-router-lite

Weekly Downloads

9

Version

1.4.0

License

Unlicense

Unpacked Size

33.8 kB

Total Files

38

Last publish

Collaborators

  • streamich