Live data from Hacker News

Learning Node.js and React while building a product

javascriptkicks.com

41–42 of 42 posts

Re: Learning Node.js and React while building a product

#41

Earlier quoted context omitted.

There are a lot of people using Typescript with React... it's not so bad, I don't see the point nearly as much as some, but it's definitely there, and pretty well supported.

I tried typescript with react, but found that I was constantly adding `: any` when dealing with `props` and `dispatch`. It felt like it was getting in the way more than it was helping.

You could specify them though, or not do `: any` which iirc is implicit?

Re: Learning Node.js and React while building a product

#42
post #35
post #34

Earlier quoted context omitted.

Fwiw I think "compiled to" is a bit of a misnomer. From my understanding it's more like a DSL that gets interpreted by the renderer.

I think compilation is fair wording -- JSX is just sugar around the createElement API. : https://facebook.github.io/react/docs/react-api.html#createe...

A bit late, but my thought is that compiled to js/Dom api to me implies that it's compiled directly to document.createElement and friends.
Post reply on HN