Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions runtime/reference/jsx.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ options by default:
}
```

:::note

When using the default `"react"` mode with React, you'll need to add
`@types/react` for type checking to work (e.g.,
`"@types/react": "npm:@types/react"` in your `deno.json` imports). Without it
you'll get errors like `JSX element implicitly has type 'any'`. Consider using
the [automatic runtime](#jsx-automatic-runtime-recommended) instead, which is
the recommended approach.

:::

Using the `"react"` option will convert JSX into the following JavaScript code:

```jsx
Expand Down
Loading