What is JSX? #57129
Replies: 3 comments
-
|
JSX is a XML-like syntax extension to ECMAScript (the acronym stands for JavaScript XML). Basically it just provides syntactic sugar for the React.createElement() function, giving us expressiveness of JavaScript along with HTML like template syntax. In the example below text inside tag is returned as JavaScript function to the render function.
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks very much! You are right. |
Beta Was this translation helpful? Give feedback.
-
|
GitHub's Acceptable Use Policies prohibits coordinated or inauthentic activity like rapid questions and answers. As a result, we'll be unmarking the answer and locking this post. Please note any future violations may result in a temporary or indefinite block from the Community. Thanks for understanding. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
What is JSX in JavaScript?
Beta Was this translation helpful? Give feedback.
All reactions