Challenge: Multi-Stage Navbar

Hands-on exercise to test your knowledge about the fundamentals of function components of React.

Task

Create an enhanced navigation bar using only function component for a website that allows users to navigate to different sections and subcategories of the navbar. Create a navigation bar with the following features:

  1. Display Navbar items.

    1. Display main menu items that are Home, Product, About, and Secure.

    2. Highlight the currently selected item.

    3. Implement subcategories for "About" with links.

    4. Disable the "Secure" menu item.

  2. Implement navigation functionality to redirect users to the specified URLs when clicking on menu items.

  3. Customize the appearance and styles as needed for a visually appealing and user-friendly navigation bar.

  4. Test your navigation bar to verify that all features work correctly.

  5. Make any necessary adjustments to meet the requirements and match your design preferences.

Expected output

The following layout is the expected output. It includes a central navigation bar with four buttons. Two buttons have drop-down menus, providing versatility. The goal is to optimize efficiency and offer a visually appealing, user-friendly experience.

Get hands-on with 1200+ tech skills courses.