diff --git a/src/content/learn/typescript.md b/src/content/learn/typescript.md index c348e649662..e6ff4ff467c 100644 --- a/src/content/learn/typescript.md +++ b/src/content/learn/typescript.md @@ -38,7 +38,7 @@ npm install @types/react @types/react-dom The following compiler options need to be set in your `tsconfig.json`: 1. `dom` must be included in [`lib`](https://www.typescriptlang.org/tsconfig/#lib) (Note: If no `lib` option is specified, `dom` is included by default). -1. [`jsx`](https://www.typescriptlang.org/tsconfig/#jsx) must be set to one of the valid options. `preserve` should suffice for most applications. +2. [`jsx`](https://www.typescriptlang.org/tsconfig/#jsx) must be set to one of the valid options. `preserve` should suffice for most applications. If you're publishing a library, consult the [`jsx` documentation](https://www.typescriptlang.org/tsconfig/#jsx) on what value to choose. ## TypeScript with React Components {/*typescript-with-react-components*/}