0 votes
in ReactJS by
What is JSX?

1 Answer

0 votes
by

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
asked Feb 23, 2021 in ReactJS by SakshiSharma
0 votes
asked Jun 19, 2020 in ReactJS by JackTerrance
...