My current challenge involves an unordered list element with the following structure:
<ul className={styles["projects-pd-subdetails-list"]}>
{detail.subdetails.map((sub) => (
<li
className={styles["projects-pd-text projects-pd-subdetail"]}
>
{sub}
</li>
))}
</ul>
In a standard React element, applying multiple classes to the li
element is simple:
<li className="projects-pd-text projects-pd-subdetail">{sub}</li>
Unfortunately, due to spacing issues in Next.js, the styles are being ignored. How can I solve this problem and correctly handle two classNames for my li
element?