⚛ React + ASP.NET Core Guide

React with ASP.NET Core in Visual Studio

Visual Studio ships a project type that creates a React front end and an ASP.NET Core back end in a single solution, wired together for a smooth F5 experience. This guide explains what you get, how it works, and how to take it to production.

What is the "React and ASP.NET Core" project type?

It creates a Visual Studio solution with two projects:

Press F5 and Visual Studio starts both: the API and the Vite dev server (with hot module replacement) so edits appear instantly in the browser.

Template details change between releases. Names, defaults (JavaScript or TypeScript, Vite versions, SPA proxy wiring) and file contents evolve with Visual Studio updates. Treat the snippets here as a guide and compare them with what your Visual Studio 2026 installation generates.