Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update TypeScript document to point to jsx runtime mode #777

Closed
marvinhagemeister opened this issue Jun 7, 2021 · 1 comment
Closed

Comments

@marvinhagemeister
Copy link
Member

TypeScript supports the new runtime jsx transpilation now, which automatically adds imports like the babel plugin. It can be enabled by either setting jsx to react-jsx or react-jsx-dev.

See: https://www.typescriptlang.org/docs/handbook/jsx.html

The page for TypeScript can be found here: https://github.com/preactjs/preact-www/blob/master/content/en/guide/v10/typescript.md

Related issue: preactjs/preact#3180

@marvinhagemeister
Copy link
Member Author

marvinhagemeister commented Jun 7, 2021

Err nevermind we have that already 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant