ClojureScript re-frame routing tutorial
on the code again
repo: https://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: https://github.com/Day8/re-frame-template bidi: https://github.com/juxt/bidi pushy: https://github.com/kibu-australia/pushy
0:00 intro 0:27 Project setup 02:13 View components 02:33 Multimethod to display panels 03:00 Active panel 03:34 How the navigate event works 04:57 Route mapping 07:24 Make a route 13:40 Add route params 15:00 Create user view component 17:20 Register subscription to get user 18:00 Store route params in DB 24:00 Subscribe to route params 25:14: Routing to page with route params ... https://www.youtube.com/watch?v=wFmsIZMZLNk
126391150 Bytes