Enable server-side rendering for ReactSpa template

This commit is contained in:
SteveSandersonMS
2016-02-24 11:02:21 +00:00
parent f0b0160419
commit eac76683cc
6 changed files with 41 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
ViewData["Title"] = "Home Page";
}
<div id="react-app">Loading...</div>
<div id="react-app" asp-prerender-module="ClientApp/boot-server">Loading...</div>
@section scripts {
<script src="~/dist/main.js" asp-append-version="true"></script>

View File

@@ -1,2 +1,3 @@
@using WebApplicationBasic
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
@addTagHelper "*, Microsoft.AspNet.SpaServices"