What is JSX?
Model answer
JSX is a syntax that lets you write HTML-like markup inside JavaScript. Tools such as Vite with Babel or SWC turn it into normal JavaScript function calls. It is not HTML: for example you write className instead of class, and htmlFor instead of for.
You can put any JavaScript expression inside curly braces: <h1>Hello {user.name}</h1>.
Learn this topic
React Components and Props Explained with Examples in the course React.js Full Course: Beginner to Advanced.
Sign in to add your own answer.