you can use this line ("jsx": "react") in tsconfig.json
and make sure you restart vscode or terminal.