TS17000
JSX attributes must only be assigned a non-empty 'expression'.
Broken Code ❌
<Typography variant={}>Title</Typography>Fixed Code ✔️
You can't use an empty expression ({}) in JSX attributes:
<Typography variant={'h2'}>Title</Typography>JSX attributes must only be assigned a non-empty 'expression'.
<Typography variant={}>Title</Typography>You can't use an empty expression ({}) in JSX attributes:
<Typography variant={'h2'}>Title</Typography>