ReactDevelopmentServerMiddlewareExtensions Class

Definition

Extension methods for enabling React development server middleware support.

C#
public static class ReactDevelopmentServerMiddlewareExtensions
Inheritance
ReactDevelopmentServerMiddlewareExtensions

Methods

UseReactDevelopmentServer(ISpaBuilder, String)

Handles requests by passing them through to an instance of the create-react-app server. This means you can always serve up-to-date CLI-built resources without having to run the create-react-app server manually.

This feature should only be used in development. For production deployments, be sure not to enable the create-react-app server.

Applies to

Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0