File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ title: 將 React 加入到一個現有的專案
21
21
以下是我們推薦的設定方式:
22
22
23
23
1 . 使用其中一個[ 基於 React 的框架] ( (/learn/start-a-new-react-project) ) 來** 建構你的應用程式中的 React 部分** 。
24
- 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/ ) )。
25
25
3 . ** 設定你的伺服器或代理** ,讓所有在 ` /some-app/ ` 下的請求都由 React 應用程式處理。
26
26
27
27
這可以確保你的應用程式中 React 部分能夠[ 受益於這些框架所內建的最佳實踐] ( /learn/start-a-new-react-project#can-i-use-react-without-a-framework ) 。
You can’t perform that action at this time.
0 commit comments