You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,15 @@
1
1
# cyclic-router
2
-
cyclic-router V5 is a routing library built for Cycle.js. Unlike previous versions, cyclic-router V5 is not a driver. It is a `main` function-wrapper (routerify) which relies on @cycle/history for driver source/sink interactions
2
+
cyclic-router V5 is a routing library built for Cycle.js. Unlike previous versions, cyclic-router V5 is not a driver. It is a `main` function-wrapper (routerify) which relies on @cycle/history for driver source/sink interactions.
3
3
4
4
For older versions of cyclic-router, V4 and earlier please go to the old [README](https://github.com/cyclejs-community/cyclic-router/blob/master/README_V4.md)
5
5
6
6
## Installation
7
7
8
8
Using [npm](https://www.npmjs.com/):
9
9
10
+
$ npm install --save @cycle/history # @cycle/history is a peerDependency of cyclic-router
Routerify requires you to inject the route matcher. We'll use `switch-path` for our examples but other matching libraries could be adapted to be used here:
@@ -93,13 +96,17 @@ const routes = {
93
96
You can dynamically change route from code by emitting inputs handled by [the history driver](http://cycle.js.org/history/docs/#historyDriver).
0 commit comments