React project in Visual Studio 2017

后端 未结 4 801
-上瘾入骨i
-上瘾入骨i 2021-01-30 02:08

I want to develop a React application in Visual Studio 2017 alongside my .NET application (in the same solution).

I am using TypeScript, so I want a project type where I

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-30 02:59

    I did this with VS 2017 using article (click here). There you would find a template called Blank Node.js Web Application, please find it here .

    Few good to know points:

    • In Visual Studio 2017 there is no specific template for React as we have for Angular.

    • There's a difference if you create your project using cli (refer here) and with Visual Studio. Cli created project loads all modules by default in node_modules and hence takes around 132 MB initially, but in case you create project using Visual Studio it loads only the required modules in node_modules and hence takes around 75 MB initially. This matters when you start deploying it in production.

    Hope it'll help you !

    Disclaimer: It always depends on requirements.

提交回复
热议问题