Getting started can be a little challenging, especially if your background is in more dynamic languages (true for me). What follows are some resources that helped me get ramped-up and familiar with the syntax and ecosystem. Enjoy!
There are a few ways to try out TypeScript.
If you’re already using Babel, there’s a new preset that shipped with Babel 7. Check out this article for more: https://iamturns.com/typescript-babel
If you want to use CRA (create-react-app), use the
--typescript flag when generating a new project from the CLI. link
Want to add Typescript to an existing CRA? There’s a migration path.
If you simply want to try out the language in a browser, try the Official Playground
Finally, if you want to try out the compiler locally, use the Getting Started Guide.
Somewhat paradoxically, TS has opened up the front-end world to a lot of developers from more traditional backgrounds in statically typed languages.
Most important is probably the Official Handbook.
There are a lot of blogs and articles dedicated to on-ramping, style, OOP, common pitfalls, advanced types, etc. — here are a few highlights.
- Gentle Intro To TypeScript (interactive videos) ⭐
- Understanding TypeScript’s type notation - 2ality ⭐
- TypeScript Deep Dive - Basarat
- TypeScript Practical Introduction
- TypeScript Evolution (covers 2.0)
Libraries like Lodash and Ramda have been empowering a functional style for a long time, now developers can implement ideas directly from languages like Haskell and Scala.
You're one click away
Level up every day