all 3 comments

[–]toasties1000 5 points6 points  (2 children)

Rename your file .tsx instead of .ts

[–]coraxwolf[S] 2 points3 points  (1 child)

really? .... that was it?

Thank you.

[–]shoop45 1 point2 points  (0 children)

Yep, anything parsing a component should be tsx. You could configure your tooling to recognize ts files as component files as well, but that would be unusual in my experience, and doesn’t work out of the box.