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

tsx #15

Open
davidmoshal opened this issue Aug 22, 2016 · 0 comments
Open

tsx #15

davidmoshal opened this issue Aug 22, 2016 · 0 comments

Comments

@davidmoshal
Copy link

Hi, wondering how to get TSX to work?

I followed general tsx advise from:
https://basarat.gitbooks.io/typescript/content/docs/jsx/tsx.html

  • Use files with the extension .tsx (instead of .ts).
  • Use "jsx" : "react" in your tsconfig.json's compilerOptions.
  • Install the definitions for JSX and React into your project : (typings install dtreact --save && typings install dtreact-dom --save).
  • Import react into your .tsx files (import * as React from "react").

However, I get this error:

Types of property 'template' are incompatible.
Type 'Element' is not assignable to type 'string'

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

No branches or pull requests

1 participant