Load components only on client-side not on Server in Next.js

You can copy the above snippet by clicking inside it.

This will load components only on the client-side as useEffect only runs on client

Sign up for my Newsletter 🏂

💌 A Frontend Newsletter you'll love, Get FREE weekly Snacks

  • 🎨 A code snippet to teach Complex Topics visually

  • 🚀 Latest Frontend Gossip

  • 👉 Frontend Developer Toolkit - with FREE templates and tools

🪴 All this to help you grow as a developer & in your day to day!

No spam, unsubscribe anytime.