From 81f6f975261b7752d6875e5557343a728fea1550 Mon Sep 17 00:00:00 2001 From: wibus-wee <1596355173@qq.com> Date: Thu, 22 Dec 2022 12:13:40 +0800 Subject: [PATCH] docs: configure your tsconfig --- docs/guide/quick-start.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/guide/quick-start.md b/docs/guide/quick-start.md index 913e223..5995a2e 100644 --- a/docs/guide/quick-start.md +++ b/docs/guide/quick-start.md @@ -145,4 +145,16 @@ pnpm add jwcjs ``` ::: -These commands will install jwcjs. You can use Vite, Rollup, Webpack, or any other build tool to build your project. \ No newline at end of file +Then, configure your tsconfig.json file to use the JSX factory and fragment factory: + +```json +{ + "compilerOptions": { + "jsx": "react", + "jsxFactory": "h", + "jsxFragmentFactory": "Fragment" + } +} +``` + +These commands will install jwcjs. You can use Vite, Rollup, Webpack, or any other build tool to build your project.