mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-21 19:31:57 +00:00
docs: fix ordered list numbering in TypeScript with React Components section (#7941)
This commit is contained in:
committed by
GitHub
parent
73a5fdd7fa
commit
fc27b0aa9a
@@ -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*/}
|
||||
|
||||
Reference in New Issue
Block a user