What is JSX?
JSX
is shorthand for JavaScript XML
. This is a type of file used by React which employs the expressiveness of JavaScript with HTML-like template syntax. This makes the HTML file really easy to understand. This file makes applications robust and boosts its performance.
The below snippet is an example of JSX:
JAVASCRIPT
1render(){
2 return(
3 <div>
4 <h1> Hello World from World!!</h1>
5 </div>
6 );
7}