TS17008

JSX element 'Typography' has no corresponding closing tag.

Broken Code ❌

<Typography variant="h6">
  Welcome to TypeScript!

This error occurs because the JSX element <Typography> is not properly closed. In JSX, every tag must either be self-closing or have a matching closing tag.

Fixed Code ✔️

JSX syntax is strict about tag structure. If you open a tag like <Typography>, you must also close it with </Typography> unless it's self-closing (e.g. <input />, <br />). To fix the issue, add the missing closing tag:

<Typography variant="h6">Welcome to TypeScript!</Typography>