How to set up Visual Studio 2015 Community Update 3 to work with ES6 (jsx files)

2

Good day, I'm starting in the library react JS, I would like to know how is the correct way to configure visual studio 2015 community to work with react using ES6 and also be able to create jsx files, right now creating a file with that extension (.jsx) the IDE paints it in red as a syntax error.

I have read that to work with ES6 you need a transpiler (like Babel) so that the browser can interpret this code, and some other configurations, but they do so by installing different packages but by npm (you have to have node installed). How do you do all that but for Visual Studio?

Thanks for your time.

    
asked by Michael V. 20.10.2016 в 18:21
source

1 answer

0

In this league there is a support project

link

Prerequisite:

Have the Node.js Tools for Visual Studio downloadable here there is a version for 2013 and 2015, you have to download the adequate, since there is no retrocompatibility

Translation of the installation:

  

Step 1: Install TypeScript 1.6 +

     

This option will only be enabled if TypeScript 1.6 is installed   for Visual Studio 2013 or 2015, currently available for your   download.

                                     
answered by 20.10.2016 / 18:27
source