DEV Community

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

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