React — JSX in React
JSX stands for JavaScript XML. It allows you to write HTML elements inside JavaScript and place them in the DOM without using createElement()
or appendChild()
.
JSX makes React code more readable and easier to write.
const element = <h1>Welcome to JSX!</h1>