From 450ae964411f5180e4c3f7e6e974ccba03eb4e59 Mon Sep 17 00:00:00 2001 From: Orta Date: Thu, 6 Aug 2020 09:16:36 -0400 Subject: [PATCH] Improe the JSX docs --- .../tsconfig-reference/copy/en/options/jsx.md | 56 ++++++++++++++++++- .../scripts/tsconfigRules.ts | 2 +- .../src/redirects/setupRedirects.ts | 4 +- packages/typescriptlang-org/tsconfig.json | 5 -- 4 files changed, 59 insertions(+), 8 deletions(-) diff --git a/packages/tsconfig-reference/copy/en/options/jsx.md b/packages/tsconfig-reference/copy/en/options/jsx.md index 4bc971449e77..543c9407ddd6 100644 --- a/packages/tsconfig-reference/copy/en/options/jsx.md +++ b/packages/tsconfig-reference/copy/en/options/jsx.md @@ -6,6 +6,60 @@ oneline: "Control how JSX is emitted" Controls how JSX constructs are emitted in JavaScript files. This only affects output of JS files that started in `.tsx` files. -- `preserve`: Emit `.jsx` files with the JSX unchanged - `react`: Emit `.js` files with JSX changed to the equivalent `React.createElement` calls +- `preserve`: Emit `.jsx` files with the JSX unchanged - `react-native`: Emit `.js` files with the JSX unchanged + +