After a lengthy hiatus, I'm diving back in and feeling somewhat disconnected. In short, I have encountered a minor challenge. I successfully created a navigation menu pop-out that toggles classname based on the isActive condition in React. However, I'm struggling to figure out how to implement it using Next.js formatting with the
classname={styles.selector syntax}
. Any guidance on this issue would be greatly appreciated.
Here's an example of my code:
<div className={isActive ? "drop-menu menu-2" : null}> <a>text</a></div>