Skip to content

Commit 61446a1

Browse files
committed
chore: fix
1 parent 3e14b2f commit 61446a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/docs/zh/guide/solution/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { PackageManagerTabs } from '@theme';
2121

2222
## 在现有 Rslib 项目中使用
2323

24-
开发 React 组件,需要设置 [target](/config/rsbuild/output#outputtarget)`"web"``rslib.config.ts`。 这一点至关重要,因为 Rslib 默认将 `target` 设置为 `"node"`,这与 Rsbuild 的 target 默认值不同。
24+
开发 React 组件,需要在 `rslib.config.ts` 中设置 [target](/config/rsbuild/output#outputtarget)`"web"`。 这一点至关重要,因为 Rslib 默认将 `target` 设置为 `"node"`,这与 Rsbuild 的 target 默认值不同。
2525

2626
要编译 React(JSX 和 TSX),你需要注册 Rsbuild [React 插件](https://rsbuild.dev/zh/plugins/list/plugin-react)。该插件将自动添加 React 构建所需的配置。
2727

0 commit comments

Comments
 (0)