New to ASP.NET Core, react, jsx and tsx. That being said, there are two different paths one can take to set up react on ASP.NET Core that I've found:
https://reactjs.net/getting-started/aspnetcore.html
and
yo aspnetcore-spa - https://blogs.msdn.microsoft.com/webdev/2017/02/14/building-single-page-applications-on-asp-net-core-with-javascriptservices/
Via the first method, I'm asked to install the React.AspNet NuGet package, and to add entries into the middleware in the startup.cs file.
Via the second method, there is no such NuGet package and don't appear to be such changes to the middleware.
I think that in the first method, the middleware is JITting the .jsx to .js on the fly. And I believe that in the second method, it's doing transpilation in webpack with a ts loader.
Is my understanding correct? If so, can someone help me understand the pros and cons to each of the above methods of utilizing React in an ASP.NET Core application, as well as the implications of whether one will be leveraging .tsx, .jsx, or only .js files?
Thanks!