This is a simple example of a React component.
+ +Current count: { this.state.currentCount }
+ + +Loading...
+ : FetchData.renderForecastsTable(this.state.forecasts); + + returnThis component demonstrates fetching data from the server.
+ { contents } +Date | +Temp. (C) | +Temp. (F) | +Summary | +
---|---|---|---|
{ forecast.dateFormatted } | +{ forecast.temperatureC } | +{ forecast.temperatureF } | +{ forecast.summary } | +
Welcome to your new single-page application, built with:
+To help you get started, we've also set up:
+webpack
build tool. Your client-side resources are dynamically built on demand. Updates are available as soon as you modify any file.webpack
build tool produces minified static CSS and JavaScript files.
+ For larger applications, or for server-side prerendering (i.e., for isomorphic or universal applications), you should consider using a Flux/Redux-like architecture.
+ You can generate an ASP.NET Core application with React and Redux using dotnet new reactredux
instead of using this template.
+
+ Request ID: @ViewData["RequestId"]
+
+ Swapping to Development environment will display more detailed information about the error that occurred. +
++ Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. +
diff --git a/Lectures/Lecture6/empty_template/Views/Shared/_Layout.cshtml b/Lectures/Lecture6/empty_template/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000..1b60f18 --- /dev/null +++ b/Lectures/Lecture6/empty_template/Views/Shared/_Layout.cshtml @@ -0,0 +1,20 @@ + + + + + +