Skip to content

Commit 1156584

Browse files
committed
fix(tsconfig) use react jsx
1 parent dbea72f commit 1156584

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/preact-render-to-string-tests.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import render from '../src';
2-
import { VNode } from 'preact';
2+
import { VNode, h } from 'preact';
33

44
let vdom: VNode = <div class="foo">content</div>;
55

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"typeRoots": [
1414
"../"
1515
],
16-
"jsx": "preserve",
16+
"jsx": "react",
1717
"jsxFactory": "h",
1818
"experimentalDecorators": true,
1919
"types": [],

0 commit comments

Comments
 (0)