I made a "use-client" plugin for support nextjs app router #28468
coder-xiaotian
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
use-client
https://github.com/coder-xiaotian/swc-useclient
A swc plugin that automatically converts React component libraries into "React Client Component". For example, you can automatically convert components from @mui into "React Client Component" without having to wrap a component that uses "use client".
Installation
npm:
yarn:
pnpm:
Configuration
Examples
next.js configuration:
swc configuration:
Beta Was this translation helpful? Give feedback.
All reactions