repo: [ Ссылка ]
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: [ Ссылка ]
bidi: [ Ссылка ]
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
ClojureScript re-frame routing tutorial
Теги
tutorialdevelopercodingcodeweb developmentjavascriptbasic codingclojureclojurescriptclojure scriptclojure routesclojurescript routesre-frameclojure re-frameclojurescript re-framerouting tutorialre-frame routingre-frame routesclojurescript spaspafunctional programmingclojurescript tutorialclojurescript pathsclojurescript routingclojurescript tutrialbidipushyclojure spaclojurescript websiteweb appbidi routing