Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add migration guide links #1135

Merged
merged 1 commit into from
Jan 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/document/docs/en/guide/framework/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export default defineConfig({
});
```

:::tip
For projects using Create React App, you can refer to the [CRA Migration Guide](/guide/migration/cra).
:::

## Use SVGR

Rsbuild supports convert SVG to React components via [SVGR](https://react-svgr.com/).
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/en/guide/framework/vue2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export default defineConfig({
});
```

:::tip
For projects using Vue CLI, you can refer to the [Vue CLI Migration Guide](/guide/migration/vue-cli).
:::

## Use the JSX syntax of Vue

If you need to use the JSX syntax of Vue, you also need to register the [Vue 2 JSX plugin](/plugins/list/plugin-vue2-jsx).
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/en/guide/framework/vue3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export default defineConfig({
});
```

:::tip
For projects using Vue CLI, you can refer to the [Vue CLI Migration Guide](/guide/migration/vue-cli).
:::

## Use the JSX syntax of Vue

If you need to use the JSX syntax of Vue, you also need to register the [Vue 3 JSX plugin](/plugins/list/plugin-vue-jsx).
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/zh/guide/framework/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export default defineConfig({
});
```

:::tip
对于使用 Create React App 的项目,可以参考 [CRA 迁移指南](/guide/migration/cra)。
:::

## 使用 SVGR

Rsbuild 支持调用 [SVGR](https://react-svgr.com/),将 SVG 图片转换为一个 React 组件使用。
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/zh/guide/framework/vue2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export default defineConfig({
});
```

:::tip
对于使用 Vue CLI 的项目,可以参考 [Vue CLI 迁移指南](/guide/migration/vue-cli)。
:::

## 使用 Vue JSX 语法

如果你需要使用 Vue 的 JSX 语法,还需要注册 Rsbuild 的 [Vue 2 JSX 插件](/plugins/list/plugin-vue2-jsx)。
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/zh/guide/framework/vue3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export default defineConfig({
});
```

:::tip
对于使用 Vue CLI 的项目,可以参考 [Vue CLI 迁移指南](/guide/migration/vue-cli)。
:::

## 使用 Vue JSX 语法

如果你需要使用 Vue 的 JSX 语法,还需要注册 Rsbuild 的 [Vue 3 JSX 插件](/plugins/list/plugin-vue-jsx)。
Expand Down