You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pages/docs.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -387,9 +387,7 @@ There are of couple things you will need to do to use WCC with JSX:
387
387
388
388
TSX (.tsx) file are also supported and your HTML will also be **type-safe**. You'llneedtoconfigureJSXinyour_tsconfig.json_byaddingthesetwolinestoyour`compilerOptions`settings:
389
389
390
-
<!--prettier-ignore-start-->
391
-
392
-
```json5
390
+
```jsonc
393
391
{
394
392
"compilerOptions": {
395
393
// required options
@@ -398,13 +396,11 @@ TSX (.tsx) file are also supported and your HTML will also be **type-safe**. You
398
396
399
397
// additional recommended options
400
398
"allowImportingTsExtensions": true,
401
-
"erasableSyntaxOnly": true
402
-
}
399
+
"erasableSyntaxOnly": true,
400
+
},
403
401
}
404
402
```
405
403
406
-
<!--prettier-ignore-end-->
407
-
408
404
IfyoucreateyourowncustomelementsandusetheminyourTSXcomponents, you'll need to define your own `interface` for them:
0 commit comments