Why JSX?
React uses JSX instead of the regular JavaScript.
Advantages:
- Faster because it performs optimization while compiling code to JavaScript.
- Type-safe and most of the errors can be caught during compilation.
- Easier and faster to write templates, if you are familiar with HTML.