Jul 2, 2019 in React JS
Q: What is JSX?

1 Answer

0 votes
Jul 2, 2019

JSX is a syntax extension to JavaScript and comes with the full power of JavaScript. JSX produces React “elements”. You can embed any JavaScript expression in JSX by wrapping it in curly braces. After compilation, JSX expressions become regular JavaScript objects. This means that you can use JSX inside of if statements and for loops, assign it to variables, accept it as arguments, and return it from functions. Eventhough React does not require JSX, it is the recommended way of describing our UI in React app.

Related questions

0 votes
Jun 19, 2020 in React JS
0 votes
0 votes
Jun 19, 2020 in React JS
...