Skip to content

Commit 0c54dab

Browse files
authored
Merge pull request #15 from streamich/docs-router
docs: ✏️ add routing import example
2 parents 7bee695 + 92ef481 commit 0c54dab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/en/routing.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ Reference:
1717
- [`createRouter()`](#createrouter)
1818

1919

20+
## Usage
21+
22+
```js
23+
import {Router, Match, Route, Switch, go, Link, createRouter} from 'libreact/lib/route';
24+
```
25+
26+
2027
## Use any state container
2128

2229
With libreact's `<Router>` you can choose to store the current route in your state continer (like Redux or MobX).

0 commit comments

Comments
 (0)