JSX

JSX is React's template domain-specific language (DSL), allowing you to write the user interface in code next to its logical code. This is the part where non-React developers often cringe, especially those used to MVC-style programming. React follows the notion that components can (and should) be hard-wired with its template. Arguably, it is indicated that this is actually more productive, since one rarely needs the same logic with completely different templates, and thus having it in one piece should be more easily maintainable.

JSX is not really mandatory. As part of the build process, JSX is compiled to plain JavaScript code behind the scenes. Therefore, it is possible to use the underlying JavaScript API to construct the Virtual DOM, ...

Get Hands-On Full-Stack Web Development with ASP.NET Core now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.