Hey guys 👋🏻,
In this post, let us learn what JSX is in React and why it is important for us as React developers to understand it.
In this post, let us understand
✔ What is JSX ?
✔ Example of JSX
✔ JSX code being equivalent to React.createElement calls.
✔ JSX Restrictions
JSX code is nothing but multiple calls to the React.createElement method to build up the HTML for our component.
- JSX expression must have exactly one root element and it is under this root element that you nest your JSX code.
So this is it for this article. Thanks for reading.
Don’t forget to leave a like if you loved the article. Also share it with your friends and colleagues.