Discussion on: Part 1: Build This Cool Dropdown Menu with React, React Router and CSS

link2twenty profile image
Andrew Bone

This looks pretty cool, it reminds me a little of a FAB with speed dial.

One thing I'd say to think about is making the menu items customisable. Currently you have to edit your Menu class to make any changes.

Generally when making a component the aim is to make it reusable and simple enough that is rarely needs to be revisited.

Here's something I wrote a little while ago that takes an object and builds the menu from that but there are many ways to do it.

If you do make any of changes it might be cool to do a part 2 of this post showing what you changed 😊.

cooljasonmelton profile image
Jason Melton Author

Ah yeah! That's a good idea. Initially, I was going to do something like that and map all the menu items, but I thought this way it'd be more clear what I was doing for demonstration.

I do like your idea. I'll write a part 2 and then be able to compare and contrast. Thanks for that and thanks for sharing your stuff with me. Awesome.