JSX - console log in JSX

0 votes
116 views
added Jul 22 in JSX by lcjr Lieutenant (12,460 points)
{(() => {
console.log("submenu for:", label, submenu); // ✅ Add this line
return null;
})()}
{hasSubmenu && isListingsOpen2 && submenu && (
<div
  className={`animate-fadeIn ${
    !shouldCollapse ? "pl-2" : " "
  } overflow-hidden transition-all duration-300 ease-in-out max-h-[200px] py-2`}
>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...