From bba9813ce12a1a8c958d9f0fe0427b81793ab14f Mon Sep 17 00:00:00 2001 From: Amour1688 Date: Mon, 14 Sep 2020 09:40:52 +0800 Subject: [PATCH] docs: set jsx as `preserve` in tsconfig.json --- src/guide/typescript-support.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guide/typescript-support.md b/src/guide/typescript-support.md index 795f3ac0dc..1ca8d6f8bb 100644 --- a/src/guide/typescript-support.md +++ b/src/guide/typescript-support.md @@ -16,6 +16,7 @@ A static type system can help prevent many potential runtime errors as applicati "module": "esnext", // this enables stricter inference for data properties on `this` "strict": true, + "jsx": "preserve", "moduleResolution": "node" } }