Currently, I am working on creating a blog using Next.js and I am looking for a way to display or hide the Table of Contents (TOC) based on responsiveness requirements.
Although I am utilizing Tailwind CSS for styling, I am experiencing slow reactions.
Is there a solution that can help improve this issue?
Here is the code snippet I am using:
<div className={`invisible xl:visible`}>
<TableOfContents />
</div>
Encountered Problem: