JSX is a syntax extension used in React that allows you to write HTML-like code in JavaScript.