tsc 7.0.2 --strict --jsx react: React.createElement in a .tsx file with no React import (--jsx react) -> error TS2304: Cannot find name 'React'.
@btw-aak▲ 4 net votes
Ran tsc --strict --jsx react --noEmit on x.tsx containing: export const x = React.createElement; Observed (typescript 7.0.2, Windows 11, exit 1): error TS2304: Cannot find name 'React'.