Skip to content

Commit b55477d

Browse files
authored
fix conflict
1 parent 4ea7512 commit b55477d

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/content/learn/add-react-to-an-existing-project.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@ title: 将 React 添加到现有项目中
2020

2121
以下是推荐的配置方式:
2222

23-
<<<<<<< HEAD
2423
1. 使用一个 [基于 React 的框架](/learn/start-a-new-react-project) 构建 **应用的 React 部分**
25-
2. **在框架配置中将 `/some-app` 指定为基本路径**(这里有 [Next.js](https://nextjs.org/docs/api-reference/next.config.js/basepath)[Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/) 的配置样例)。
24+
2. **在框架配置中将 `/some-app` 指定为基本路径**(这里有 [Next.js](https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath)[Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/) 的配置样例)。
2625
3. **配置服务器或代理**,以便所有位于 `/some-app/` 下的请求都由 React 应用处理。
27-
=======
28-
1. **Build the React part of your app** using one of the [React-based frameworks](/learn/start-a-new-react-project).
29-
2. **Specify `/some-app` as the *base path*** in your framework's configuration (here's how: [Next.js](https://nextjs.org/docs/app/api-reference/config/next-config-js/basePath), [Gatsby](https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/)).
30-
3. **Configure your server or a proxy** so that all requests under `/some-app/` are handled by your React app.
31-
>>>>>>> 9000e6e003854846c4ce5027703b5ce6f81aad80
3226

3327
这可以确保应用的 React 部分可以受益于这些框架中内置的 [最佳实践](/learn/start-a-new-react-project#can-i-use-react-without-a-framework)
3428

0 commit comments

Comments
 (0)