DEV Community

Discussion on: Create a Modern Dynamic Sidebar Menu in React Using Recursion

Collapse
utcobb profile image
Christopher • Edited on

Hey there, how can i use this to link to other pages in my site? You never covered actually using the thing to get anywhere. Multiple people have asked about that in the comments and they were ignored. Would you mind clarifying how to go about that using this? Thanks!

Collapse
zeeshanamjad0495 profile image
ZeeshanAmjad0495 • Edited on

Hi Chris, you can use React Router. Add routes to your list items and change the route on click. You can refer to this:
reactrouter.com/web/example/sidebar