Extending the Submenu Functionality

Now we will extend the submenu functionality by fetching dynamic data and images from the server, and making submenus distinct.

Rendering submenu items #

The values that’ll come from our server are as follows:

  • The lists that go into each column
  • The image matching the menu item

It’ll take a fair bit of refactoring to go from the hardcoded version we have now to one that’s populated by the server.

First, let’s modify the server so that it can handle the requests we’re about to make.

Get hands-on with 1400+ tech skills courses.