I've tried following the code, but my rust game is minimal (I'm just a lost Gopher).
More precisely my question is how does it know which route to display? I'm trying to follow/copy the code for a slides component library where each slide is in an enum (like routes).
I'm trying to figure out what to do here (commented out code was co-pilots attempt): https://github.com/alexanderjophus/dioxus-slides/blob/main/packages/slides/src/slides.rs#L21-L28
For reference here's the router version: https://github.com/DioxusLabs/dioxus/blob/master/packages/router/src/components/router.rs#L147-L164
Full code is here: https://github.com/alexanderjophus/dioxus-slides