This repository contains an example how React and Redux can be used with ASP.NET MVC Core. ReactJS.NET is used to be able to use Server Side Rendering. It is a great way to reuse all React Components to create Server Pages.
The purpose of the example is for my own investigation of Visual Studio 2017 and ASP.NET MVC Core in connection with React technologies. The following was used for the setup/environment:
- Just released Visual Studio 2017
- Latest Version of ASP.NET MVC Core 1.1
- React v15.4.0 and Redux v3.6
- ReactJS.NET 3.0 for Server Side Rendering
- Webpack for our builds and bundles
Clone the repository
git clone https://github.com/dennisfleischmann/dotnet-core-with-react.gitChange directory
cd dotnet-core-with-reactsRestore all nuget packages
dotnet restoreInstall node modules & run builds
cd dotnet-core-with-reacts.ui/clientInstall node modules
yarn installRun builds
yarn buildcd..dotnet runopen http://localhost:5000/