We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ff0019 commit e2e1761Copy full SHA for e2e1761
1 file changed
runtime/reference/jsx.md
@@ -29,6 +29,17 @@ options by default:
29
}
30
```
31
32
+:::note
33
+
34
+When using the default `"react"` mode with React, you'll need to add
35
+`@types/react` for type checking to work (e.g.,
36
+`"@types/react": "npm:@types/react"` in your `deno.json` imports). Without it
37
+you'll get errors like `JSX element implicitly has type 'any'`. Consider using
38
+the [automatic runtime](#jsx-automatic-runtime-recommended) instead, which is
39
+the recommended approach.
40
41
+:::
42
43
Using the `"react"` option will convert JSX into the following JavaScript code:
44
45
```jsx
0 commit comments