boring-router
Advanced tools
Comparing version 0.1.0-alpha.9 to 0.1.0-alpha.10
export * from './router'; | ||
export * from './route-match'; | ||
export * from './route'; | ||
export * from './link'; |
@@ -7,2 +7,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./route"), exports); | ||
tslib_1.__exportStar(require("./link"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "boring-router", | ||
"version": "0.1.0-alpha.9", | ||
"version": "0.1.0-alpha.10", | ||
"description": "A light-weight, type-safe, yet reactive router service using MobX.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -43,7 +43,11 @@ [](https://www.npmjs.com/package/boring-router) | ||
return ( | ||
<> | ||
<Route match={router.account}>Account page</Route> | ||
<HistoryProvider value={history}> | ||
<Route match={router.account}> | ||
Account page | ||
<hr /> | ||
<Link to={router.about}>About</Link> | ||
</Route> | ||
<Route match={router.about}>About page</Route> | ||
<Route match={router.notFound}>Not found</Route> | ||
</> | ||
</HistoryProvider> | ||
); | ||
@@ -50,0 +54,0 @@ } |
20060
14
355
182