React-with-Redux 專案範本搭配 ASP.NET Core 使用Use the React-with-Redux project template with ASP.NET Core

更新的 React-with-Redux 專案範本很適合用來設計 ASP.NET Core 應用程式,而且可利用 React、Redux 和 create-react-app (CRA) 慣例來實作一個功能多樣的用戶端使用者介面 (UI)。The updated React-with-Redux project template provides a convenient starting point for ASP.NET Core apps using React, Redux, and create-react-app (CRA) conventions to implement a rich, client-side user interface (UI).

除了專案建立命令,所有與 React-with-Redux 範本有關的資訊,都與 React 範本相同。With the exception of the project creation command, all information about the React-with-Redux template is the same as the React template. 若要建立這種專案類型,請執行 dotnet new reactredux 而不是 dotnet new reactTo create this project type, run dotnet new reactredux instead of dotnet new react. 對於這兩個以 React 為基礎的範本,如需深入了解其通用功能,請參閱 React 範本文件For more information about the functionality common to both React-based templates, see React template documentation.

如需在 IIS 中設定 React 與 Redux 的子應用程式的資訊,請參閱ReactRedux 範本 2.1:無法在 IIS 上使用 SPA (aspnet/Templating #555)For information on configuring a React-with-Redux sub-application in IIS, see ReactRedux Template 2.1: Unable to use SPA on IIS (aspnet/Templating #555).