Skip to content

Commit

Permalink
Improved README.md (reasonml-community#1)
Browse files Browse the repository at this point in the history
* Fixed typo (Navitaged -> Navigated)
* Added example of capturing a route parameter in a route
  • Loading branch information
bkase authored and chenglou committed May 12, 2017
1 parent 78b61e9 commit cca3d24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ npm i bs-director
```reason
let router =
DirectorRe.makeRouter {
"/": fun () => Js.log "Navitaged to tasks list",
"/active": fun () => Js.log "Navitaged active tasks list",
"/completed": fun () => Js.log "Completed a task"
"/": fun () => Js.log "Navigated to tasks list",
"/active": fun () => Js.log "Navigated active tasks list",
"/profile/:userid": fun (userid: string) => Js.log ("Navigated to profile for: " ^ userid)
"/completed": fun () => Js.log "Completed a task",
};
DirectorRe.init router "/";
Expand Down

0 comments on commit cca3d24

Please sign in to comment.