3 ms·
Because you can paste in your favorite JavaScript code snippets and they work without modification. One can gradually add types to a JavaScript project at a pac
by labrador 10y ago
Because you can paste in your favorite JavaScript code snippets and they work without modification. One can gradually add types to a JavaScript project at a pace of your choosing. I think a more interesting question is why add types when there is Facebook's flow. My answer: because flow doesn't help with the refactoring and other IDE tasks.
Ask HN: If TypeScript is so great, how come all notable ReactJS projects use Babel?
https://news.ycombinator.com/item?id=12537614 https://news.ycombinator.com/item?id=12537614