kentcdodds / ama

Ask me anything!
https://github.com/kentcdodds/ama/issues?q=is%3Aissue+is%3Aclosed
685 stars 75 forks source link

You should make an egghead.io course with Typescript AND React (including hooks etc.) #559

Open austingardner opened 5 years ago

austingardner commented 5 years ago

I am a professional React developer (started six months ago at my first job after BYU -- Go Cougs!) and I really love React. I tried Typescript once and the syntax seemed very unnatural and I just kept getting syntax error after syntax error until I gave up. I really didn't like it, but obviously I missed something good because you switched Paypal's new projects to Typescript. I need more information on how to overcome the common syntax errors when starting Typescript with React.

Will you make an egghead.io course featuring the common syntax errors / mistakes of using Typescript + React? Including hooks, integrating libraries that don't feature Typescript, etc.

hedgerh commented 5 years ago

Hmm, what kind of issues did you run into? There are some extra things we had to setup to make sure everything was typesafe well, and it can be a little painful to figure out certain types you need to use at first (events passed to your event handlers, for example.) I was a Typescript naysayer until I used it on my most recent project and absolutely love it.

Typescript offers me so much insight into my code and gives me quicker feedback on small errors that I would have caught in runtime.

I think it's highly worth keeping at.