Skip to content

Commit

Permalink
add Installation section to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-xiaotian committed Jul 8, 2023
1 parent 5802171 commit 3576523
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@

一个将React组件库自动转换为“React客户端组件“的 swc 插件,比如:你可以通过它自动将@mui中的组件自动转换为"React客户端组件",而不用在外部包装一个使用了"use client"的组件。

## 安装
npm:
```
npm install -D use-client
```

yarn:
```
yarn add -D use-client
```

pnpm:
```
pnpm i -D use-client
```

## 配置
+ include:["@mui/material"]

Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@

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:
```
npm install -D use-client
```

yarn:
```
yarn add -D use-client
```

pnpm:
```
pnpm i -D use-client
```

## Configuration
+ include: ["@mui/material"]

Expand Down

0 comments on commit 3576523

Please sign in to comment.