Browse Source

docs: replace vite with Vite (#43004)

pull/43007/head
Dunqing 1 year ago
committed by GitHub
parent
commit
02d03ba4ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/react/use-with-vite.en-US.md
  2. 6
      docs/react/use-with-vite.zh-CN.md

6
docs/react/use-with-vite.en-US.md

@ -1,9 +1,9 @@
--- ---
order: 4 order: 4
title: Usage with vite title: Usage with Vite
--- ---
[vite](https://vitejs.dev/) is one of the best React application development tools. We are going to use `antd` within it and modify the vite config for some customized needs. [Vite](https://vitejs.dev/) is one of the best React application development tools. We are going to use `antd` within it and modify the vite config for some customized needs.
## Install and Initialization ## Install and Initialization
@ -64,6 +64,6 @@ const App = () => (
export default App; export default App;
``` ```
OK, you should now see a blue primary button displayed on the page. Next you can choose any components of `antd` to develop your application. Visit other workflows of `vite` at its [User Guide](https://vitejs.dev/). OK, you should now see a blue primary button displayed on the page. Next you can choose any components of `antd` to develop your application. Visit other workflows of `Vite` at its [User Guide](https://vitejs.dev/).
We are successfully running antd components now, go build your own application! We are successfully running antd components now, go build your own application!

6
docs/react/use-with-vite.zh-CN.md

@ -1,9 +1,9 @@
--- ---
order: 4 order: 4
title: 在 vite 中使用 title: 在 Vite 中使用
--- ---
[vite](https://cn.vitejs.dev/) 是业界最优秀的 React 应用开发工具之一,本文会尝试在 vite 创建的工程中使用 `antd` 组件,并自定义 vite 的配置以满足各类工程化需求。 [Vite](https://cn.vitejs.dev/) 是业界最优秀的 React 应用开发工具之一,本文会尝试在 Vite 创建的工程中使用 `antd` 组件,并自定义 Vite 的配置以满足各类工程化需求。
## 安装和初始化 ## 安装和初始化
@ -64,6 +64,6 @@ const App = () => (
export default App; export default App;
``` ```
好了,现在你应该能看到页面上已经有了 `antd` 的蓝色按钮组件,接下来就可以继续选用其他组件开发应用了。其他开发流程你可以参考 vite 的[官方文档](https://cn.vitejs.dev/)。 好了,现在你应该能看到页面上已经有了 `antd` 的蓝色按钮组件,接下来就可以继续选用其他组件开发应用了。其他开发流程你可以参考 Vite 的[官方文档](https://cn.vitejs.dev/)。
我们现在已经把 antd 组件成功运行起来了,开始开发你的应用吧! 我们现在已经把 antd 组件成功运行起来了,开始开发你的应用吧!

Loading…
Cancel
Save