mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
Recommend installing @types/* as dev dependencies
This commit is contained in:
@@ -32,7 +32,7 @@ All [production-grade React frameworks](/learn/start-a-new-react-project#full-st
|
||||
To install the latest version of React's type definitions:
|
||||
|
||||
<TerminalBlock>
|
||||
npm install @types/react @types/react-dom
|
||||
npm install --save-dev @types/react @types/react-dom
|
||||
</TerminalBlock>
|
||||
|
||||
The following compiler options need to be set in your `tsconfig.json`:
|
||||
|
||||
Reference in New Issue
Block a user