error TS2602: JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist
Solution 1:
I resolved this issue by installing the react type definition.
Try to run yarn add --dev @types/react
Solution 2:
I solved this issue by reloading VSCode.
Ctrl + p > Developer: Reload Window