use-client

一个将React组件库自动转换为'React客户端组件'的swc插件,支持自动转换如@mui/material等库中的组件,无需手动包装。

Check out use-client on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

use-clienthttps://github.com/coder-xiaotian/swc-useclient一个将React组件库自动转换为“React客户端组件“的 swc 插件,比如:你可以通过它自动将@mui中的组件自动转换为"React客户端组件",而不用在外部包装一个使用了"use client"的组件。## 安装npm: npm install -D use-clientyarn:yarn add -D use-clientpnpm:pnpm i -D use-client## 配置+ include:["@mui/material"]## 案例next.js配置:jsconst nextConfig = { experimental: { swcPlugins: [ [ 'use-client', { include: ["@mui/material"] } ], ] }}swc配置:js{ "$schema": "https://json.schemastore.org/swcrc", "jsc": { "experimental": { "plugins": [ ["use-client", { "include": ["@mui/material"] }] ] } }}

Latest Weekly Picks

pslscale.com favicon
Weekly Pick

Discover your PSL (Perceived Sexual Market Value) score with our AI-powered facial analysis

MILO

IPYNB to PDF Converter – Free & Secure

lejintian
www.reverie.im favicon
Weekly Pick

Dream It, Chat It, Create It

Louis
make.ink favicon
Weekly Pick

Your AI tattoo generator for pro-grade concepts

Leo Wade
sellfy.com favicon
Weekly Pick

A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.

Maris
www.videotoblog.ai favicon
Weekly Pick

Convert videos into awesome blog posts.

Video To Blog
www.sellerpic.ai favicon
Weekly Pick

SellerPic is the all-in-one AI design platform for e-commerce

SellerPic
fastimage.ai favicon
Weekly Pick

Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.

Fast AI Team