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
+4-5
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,19 @@
1
1
# purescript-wire-react-router
2
2
3
-
A basic pushstate router for React, with support for asynchronous routing logic. Built using [react-basic-hooks](https://github.com/spicydonuts/purescript-react-basic-hooks) and [wire](https://github.com/robertdp/purescript-wire). I recommend [routing-duplex](https://github.com/natefaubion/purescript-routing-duplex) for easy parsing and printing.
3
+
A basic pushstate router for React with support for asynchronous routing logic, built using [react-basic-hooks](https://github.com/spicydonuts/purescript-react-basic-hooks). I recommend [routing-duplex](https://github.com/natefaubion/purescript-routing-duplex) for easy parsing and printing and [wire](https://github.com/robertdp/purescript-wire) for easy reactive state.
4
4
5
5
```purescript
6
6
makeRouter ::
7
7
forall route f.
8
8
Foldable f =>
9
9
PushStateInterface ->
10
-
{ fallback :: route
11
-
, parse :: String -> f route
10
+
{ parse :: String -> f route
12
11
, print :: route -> String
13
12
, onRoute :: route -> Router route Transitioning Resolved Unit
0 commit comments