Next.js beginner 15 min

JSX

Learn about JSX in Next.js.

JSX

JSX is a syntax extension for JavaScript that looks like HTML. It allows you to write HTML-like code inside your JavaScript files. JSX is used in React to describe the UI.

Example

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

Practice

Write a JSX element that shows your name inside a paragraph tag.