Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 335 Bytes

File metadata and controls

9 lines (6 loc) · 335 Bytes

7. What is JSX?

JSX (JavaScriptX) is a syntax extension for JavaScript that allows you to write HTML-like code in your JavaScript files. JSX makes it easier to define the structure of your components and provides a more intuitive way to work with React elements.

Example JSX code:

const element = <h1>Hello, JSX!</h1>;