gotchas
Ensure you use TypeScript 5.1.3
or higher and @types/react
18.2.8
or higher.
If you use an older version of TypeScript, you may see a 'Promise<Element>' is not a valid JSX element
type error. Updating to the latest version of TypeScript and @types/react
should resolve this issue.