0:00 / 0:00
ClojureScript re-frame routing tutorial
Daniel Amber
4.1K subscribers • 10 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Daniel Amber
- Linked in the descriptiondanownsthisspace/re-frame-routing-exampleDay8/re-frame-templatejuxt/bidi
- May be out of date. The tools, versions or practices it shows have likely moved on.
Intermediate. Assumes working knowledge.
4K views5 years ago1 recommendation
Web developmentProgramming languagesLisp and ClojureVue, Svelte, Angular and others
Daniel Amber shows how to implement routing in a ClojureScript re-frame application using Bidi and Pushy.
repo: github.com/danownsthisspace/re-frame-routing-example Here's one way to do routing in ClojureScrtipt re-frame. The cool thing with ClojureScript is that you can implement routing in any way you want, there are also more libs to use than the one I use here (Bidi). This is just an example of how you could use routing in a project and how to move forward using the re-frame template. re-frame template: github.com/Day8/re-frame-template bidi: github.com/juxt/bidi pushy: github.com/kibu-australia/pushy intro Project setup View components Multimethod to display panels Active panel How the navigate event works Route mapping Make a route Add route params Create user view component Register subscription to get user Store route params in DB Subscribe to route params : Routing to page with route params