Posts

Showing posts from March, 2017

ReactJS Tutorial with ASP.NET MVC 5

Image
Getting started For this tutorial we'll be using Visual Studio 2013, although any version of Visual Studio from 2010 onwards is fine, including Visual Studio Express 2013 which is completely free. We will be using ASP.NET MVC 4, although similar steps apply for ASP.NET MVC 5. New Project Start by creating a new ASP.NET MVC 4 project: File → New → Project Select ".NET Framework 4" and Templates → Visual C# → Web → ASP.NET MVC 4 Web Application. Call it "ReactDemo" In the "New ASP.NET MVC 4 Project" dialog, select the Empty template. I always recommend using this template for new sites, as the others include a large amount of third-party packages that you may not even use. Install ReactJS.NET We need to install ReactJS.NET to the newly-created project. This is accomplished using NuGet, a package manager for .NET. Right-click on the "ReactDemo" project in the Solution Explorer and select "Manage NuGet Packages...