This is a simple example of a React component.
24 | 25 |Current count: {this.state.currentCount}
26 | 27 | 28 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to the Development environment displays detailed information about the error that occurred. 20 |
21 |22 | The Development environment shouldn't be enabled for deployed applications. 23 | It can result in displaying sensitive information from exceptions to end users. 24 | For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development 25 | and restarting the app. 26 |
27 | -------------------------------------------------------------------------------- /src/WebpackTag/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.Extensions.DependencyInjection; 3 | using WebpackTag.AssetParsers; 4 | 5 | namespace WebpackTag 6 | { 7 | ///| Date | 21 |Temp. (C) | 22 |Temp. (F) | 23 |Summary | 24 |
|---|---|---|---|
| {forecast.date} | 30 |{forecast.temperatureC} | 31 |{forecast.temperatureF} | 32 |{forecast.summary} | 33 |
Loading...
43 | : FetchData.renderForecastsTable(this.state.forecasts); 44 | 45 | return ( 46 |This component demonstrates fetching data from the server.
49 | {contents} 50 |Welcome to your new single-page application, built with:
11 |To help you get started, we have also set up:
17 |create-react-app runs in the background automatically, so your client-side resources are dynamically built on demand and the page refreshes when you modify any file.dotnet publish configuration produces minified, efficiently bundled JavaScript files.The ClientApp subdirectory is a standard React application based on the create-react-app template. If you open a command prompt in that directory, you can run npm commands such as npm test or npm install.