ReactJsJSX Syntax

JSX (JavaScript XML) is a syntax extension for JavaScript used in React to describe what the UI should look like. It allows you to write HTML-like code directly within JavaScript. JSX makes code more readable and expressive. It is compiled into regular JavaScript under the hood.

const element = <h1>Welcome to React!</h1>;
console.log(element);