reitit/doc/frontend/basics.md
2018-08-23 10:41:13 +03:00

14 lines
511 B
Markdown

# Frontend basics
* https://github.com/metosin/reitit/tree/master/examples/frontend
**WIP**
`reitit.frontend` provides few useful functions wrapping core functions:
- `match-by-path` version which parses a URI using JavaScript, including
query-string, and also coerces the parameters.
- `router` which compiles coercers by default
- `match-by-name` and `match-by-name!` with optional `path-paramers` and
logging errors to `console.warn` instead of throwing errors (to prevent
React breaking due to errors).