Reduce Next js 14 bundle size using React Server Components

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025
  • Using a dynamic Icon Component in next.js that allows you to just specify any icon as a string might explode your bundle size.
    In this video we will see how we can still use a generic Icon component for an icon library but keep the bundle size small.
    This is especially useful in a scenario where you have a headless CMS in the backend and you want to allow content editors to just specify any icon of an icon set.
    Also you will understand how client and server components impact bundle size or not.
    Link to code:
    github.com/man...

ความคิดเห็น • 2

  • @johnmadden9613
    @johnmadden9613 4 หลายเดือนก่อน

    Please god, do some sibilance filtering. Every time you say an 'S', it hurts my ear.