2018-07-11 10:27:30 +00:00
|
|
|
# Frontend basics
|
|
|
|
|
|
2018-08-22 18:58:20 +00:00
|
|
|
* https://github.com/metosin/reitit/tree/master/examples/frontend
|
|
|
|
|
|
2018-08-23 07:41:13 +00:00
|
|
|
`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).
|