diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index 6f4c86c6cc7..8f6084071a8 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -35,7 +35,8 @@ yarn add typescript @types/node @types/react @types/react-dom @types/jest Next, rename any file to be a TypeScript file (e.g. `src/index.js` to `src/index.tsx`) and **restart your development server**! -Type errors will show up in the same console as the build one. You'll have to fix these type errors before you continue development or build your project. For advanced configuration, [see here](advanced-configuration.md). +Type errors will show up in the same console as the build one. You'll have to fix these type errors before you continue development or build your project. Many of them are fixed by adding `import React from 'react';` to your tsx files. +For advanced configuration, [see here](advanced-configuration.md). ## Getting Started with TypeScript and React