Skip to content
0:00 / 0:00

#clojurescript#re-frame#bidi

ClojureScript re-frame routing tutorial

Daniel Amber

4.1K subscribers • 10 videos on Hallway

YouTube

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

Why it's here

1 person recommends this

u/joshlemerin r/Clojure • Recommends

ClojureScript re-frame routing tutorial