This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-13
Channels
- # aleph (8)
- # announcements (3)
- # beginners (36)
- # calva (1)
- # cider (1)
- # circleci (3)
- # clj-kondo (9)
- # cljdoc (58)
- # clojars (7)
- # clojure (70)
- # clojure-europe (13)
- # clojure-japan (1)
- # clojure-nl (8)
- # clojure-russia (2)
- # clojure-uk (7)
- # clojuredesign-podcast (4)
- # clojurescript (67)
- # clojureverse-ops (14)
- # cursive (6)
- # data-science (1)
- # datahike (3)
- # datomic (6)
- # docker (1)
- # events (2)
- # figwheel-main (9)
- # fulcro (4)
- # graalvm (33)
- # graphql (8)
- # helix (1)
- # jobs (1)
- # leiningen (3)
- # lsp (39)
- # malli (9)
- # minecraft (31)
- # nextjournal (7)
- # off-topic (6)
- # portal (22)
- # re-frame (5)
- # reitit (5)
- # remote-jobs (1)
- # shadow-cljs (55)
- # sql (22)
- # tools-build (3)
- # tools-deps (4)
- # xtdb (6)
Using reitit-frontend
, I wonder to know the best approch to using routes to generate a menu + submenu (Reagent app).
The API is simple https://ant.design/components/menu/#API
<Menu>
<Menu.Item>Menu</Menu.Item>
<SubMenu title="SubMenu">
<Menu.Item>SubMenuItem</Menu.Item>
</SubMenu>
</Menu>
Is the nested routers the path to take? https://github.com/metosin/reitit/blob/master/doc/advanced/composing_routers.md#nesting-routers@zengxh Yes they change URL and it works
great for one level routes that generate simple flat menu.
My question was more about nested routes to generate sub-menus like in this React with react-router
example: https://github.com/pjchender/react-router-breadcrumb/blob/master/src/routes.js#L23-L42
My thoughts too, Apple.
@zengxh Yes they change URL and it works
great for one level routes that generate simple flat menu.
My question was more about nested routes to generate sub-menus like in this React with react-router
example: https://github.com/pjchender/react-router-breadcrumb/blob/master/src/routes.js#L23-L42