20-Integrate Asp net Core Mvc with React js | React integration for ASP.NET Core MVC | Part-20
Hello & As- salam u alikum ! In this Article we will learn to Integrate Asp.net core application with REACT JS Step# 1: Create an asp.net core mvc application in visual studio 2019 with .net core 3.5, then goto the manage nuget package and install these packages. JavaScriptEngineSwitcher.V8 React.AspNet Step# 2: Go to the startup.cs & add these following namespaces. using Microsoft.AspNetCore.Http; using JavaScriptEngineSwitcher.V8; using JavaScriptEngineSwitcher.Extensions.MsDependencyInjection; using React.AspNet; Step# 3: Add following line of code in ConfigureServices() method ---------------------------------------------------------------------------- services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); services.AddReact(); ...