From af2559dfe9a4601bb6d4f66ef8cb1c554972ba2e Mon Sep 17 00:00:00 2001 From: MozhganShafiee <98320886+MozhganShafiee@users.noreply.github.com> Date: Sun, 26 Jun 2022 11:29:38 +0430 Subject: [PATCH] Update adding-typescript.md fix import TSX file problem --- docusaurus/docs/adding-typescript.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docusaurus/docs/adding-typescript.md b/docusaurus/docs/adding-typescript.md index 4a745707cc2..bfd9ffb967d 100644 --- a/docusaurus/docs/adding-typescript.md +++ b/docusaurus/docs/adding-typescript.md @@ -41,6 +41,8 @@ Next, rename any file to be a TypeScript file (e.g. `src/index.js` to `src/index 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). +> Note: You don't need to use the suffix to import the `TSX` files. Just create a `tsconfig.json` file. + ## Getting Started with TypeScript and React You are not required to make a [`tsconfig.json` file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html), one will be made for you. You are allowed to edit the generated TypeScript configuration.