JSX Full Form (original) (raw)

Last Updated : 23 Jul, 2025

The full form of JSX is JavaScript XML. It allows us to directly write HTML in React with the JavaScript code.

What is JSX?

JSX or JavaScript XML is a syntax extension of JavaScript. It is used in React to define how the user interface should look like. It simplifies writing and understanding the code.

It is faster than normal JavaScript as it performs optimizations while translating to regular JavaScript. Instead of separating the markup and logic in separated files, React uses _components for this purpose. We will learn about components in detail in further articles.

**Syntax:

const element =

Welcome to GeeksforGeeks.

;

**Characteristics

**Advantages

**Disadvantages

**Example: This example demonstrates writting Basic JSX code to create a React Component.

JavaScript `

// Filename - index.js

import React from 'react'; import ReactDOM from 'react-dom';

const name = "Learner";

const element =

Hello, { name }.Welcome to GeeksforGeeks.< /h1>;

ReactDOM.render( element, document.getElementById("root") );

`

**Output: