Tell us what’s happening:
Step 8 is failing even when I use the code revealed in the next step of the workshop (using the N hotkey).
Step 8: Still inside the third
li
element, create aul
element for the popup. Give it aclassName
ofsub-menu
and anaria-label
ofApps
.
I’m getting this error:
You should create a
ul
element inside your thirdli
element.
Your code so far
/* file: index.jsx */
export const Navbar = () => {
return (
<nav className="navbar">
<ul>
<li className="nav-item">
<a href='#'>Dashboard</a>
</li>
<li className="nav-item">
<a href="#">Widgets</a>
</li>
<li className="nav-item">
<button aria-expanded="false">Apps</button>
{/* User Editable Region */}
<ul className="sub-menu" aria-label="Apps">
</ul>
{/* User Editable Region */}
</li>
</ul>
</nav>
)
}
It should be pretty straightforward but I even tried using code from the next step in the workshop, which was exactly the same as my code:
<ul className="sub-menu" aria-label="Apps">
</ul>
I also noticed this error message in the dev tools console:
Uncaught ReferenceError: ReactDOM is not defined
Maybe this is a bug?
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Challenge Information:
Build a Reusable Mega Navbar - Step 8