From the course: Building Single-Page Applications Using ASP.NET Core JavaScriptServices
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Server-side prerendering
From the course: Building Single-Page Applications Using ASP.NET Core JavaScriptServices
Server-side prerendering
- [Instructor] Server-side prerendering means that the JavaScript components, such as Angular or React components, are first rendered on the server, and then they get transferred to the client where execution continues. Server-side prerendering has great benefits, such as performance gain for large single-page application. A limited version of the app can run on the browser with JavaScript disabled, so it makes website search engine crawler friendly, because server can execute some JavaScript code and serve to the crawler. Let's now go to Visual Studio and see how this works. Alright, here is my Visual Studio. Let me create a project and call it... Prerendering. And the chapter and video folder 02_07. Click OK. And let's go to React as the front-end framework. Okay. That is my project. I'm going to create a new action method in HomeController. Let's just copy, paste, and rename this... As prerendering. Or Testprerendering. And it will return the View, so I'm going to create a View…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.