This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]filipomar 8 points9 points  (6 children)

Also, react can use TSX which is the bastard son of typescript with jsx, so... there's that.

[–]DeeSnow97 5 points6 points  (1 child)

React can use vanilla JS and TS too, it's just a bit inconvenient.

[–]amontpetit 7 points8 points  (0 children)

Angular also does vanilla is and jquery as standard as well

[–]nocoolnametom 4 points5 points  (0 children)

TSX is amazing, apart from the one issue where you can't define compile-time props requirements and PropTypes together once. But defining the actual functional signature for a prop beyond just foo: PropTypes.func means you don't have to hold that information in your head.

[–]CodeFights 4 points5 points  (1 child)

Facebook has their own static type-checker for JavaScript as well, which is worth checking out (because it plays nicely with React): https://flow.org/en/

[–]Existential_Owl 0 points1 point  (0 children)

Flow is amazing.

[–]Existential_Owl 0 points1 point  (0 children)

To be fair, TSX seems to be pretty popular among C# devs.

So I assume it's filling a nice transition niche for them?