facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.58k stars 26.8k forks source link

In React 17 you no longer need to import react when writing JSX #11168

Open gminova opened 3 years ago

gminova commented 3 years ago

https://github.com/facebook/create-react-app/blob/64df135c29208f08a175c941a0e94d9a56d9e4af/packages/cra-template-typescript/template/src/App.test.tsx#L1

In React 17 you no longer need to import react when writing JSX

danielnixon commented 3 years ago

Merging this would allow the use of noUnusedLocals (https://www.typescriptlang.org/tsconfig#noUnusedLocals)

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.