DEV Community

Discussion on: Building a UI from scratch, Responsive Sidebar and Header

Collapse
 
shivanibali profile image
Shivani Bali

It's an interesting article, but how can one route child components through sidebar?

Collapse
 
llorentegerman profile image
Germán Llorente

Thanks for the comment. I'm not sure if this is what you're looking for, but in this repo:
github.com/llorentegerman/expenses...
I'm using the Sidebar (I rewrote it to use Hooks and add sub items, but the concept is the same), and I'm also using React Router, so, based on the route, you'll see different contents and different item selected in the Sidebar