跳到正文
Reddit · r/SideProject· /u/maeshinshin·· 3 小时前精选AI 评分42

将 63 个 shadcn/ui 组件迁移到纯 Preact,运行时仅 5KB

I got tired of React's bloat, so I ported all 63 shadcn/ui components to pure Preact

AI 导读

作者/ u/maeshinshin 在 Astro 等轻量框架中构建项目时,发现 shadcn/ui 带来的 React 运行时 (~69KB) 太笨,于是自行将全部 63 个组件移植到纯 Preact,gzip 后仅 5KB。

推荐理由

作者把 shadcn/ui 的 63 个组件全部迁移到 Preact,运行时只要 5KB,适合想在 Astro 等框架中用轻量化 UI 的开发者直接复用。

来源:Reddit · r/SideProject · reddit.com