Hacker News new | ask | show | jobs
by lsalvatore 1637 days ago
You didn't need TypeScript. That was your first mistake. If you had chosen Create-react-app (the official boilerplate) - that's all you need. Hello world right out of the box. Nothing blows up in your face. Nothing mind-boggling. I've never had to ever run eject. Nothing saddening, nothing tiring. In fact- just the opposite. Happiness, joy, energizing React productivity.
2 comments

You can literally pass a flag to that command to get all the same stuff in Typescript. Don’t yuck someone else’s yum.
Creat-React-App has a TS option (and, IIRC, it's not that hard to use TS on a CRA app that wasn't created with that option, but it's been a while since I did that.)

Manually setting up React (with or without TS) isn't all that hard, either.