Getting Started with TypeScript

Alex Fenwood Hughes

Software Engineer @ Education First

alxhghs@gmail.com

 

Link to GitHub source code: https://bit.ly/2GoemsD

Why TypeScript?

  • Static typing 
  • Avoid type errors
  • Error checking as you code
  • ES6/ES7 features
  • Zero overhead

TypeScript, in a nut-shell

  • Super-set of JavaScript
  • Types (optional)
  • Built by Microsoft

Basic types

  • String
  • Number
  • Array
  • Object

DefinitelyTyped

VS Code

  • Great plugins
  • TypeScript integration
  • Free!

How to Get Started

React - Part I

Getting Started, again...

and a

Functional Component Example

 

React - Part II

Class Component Example

 

Resources

Alex Fenwood Hughes

Software Engineer @ Education First

alxhghs@gmail.com

 

Link to GitHub source code: https://bit.ly/2GoemsD

Intro to TypeScript Talk

By Alex Hughes

Intro to TypeScript Talk

For December 17, 2018 TypeScript Boston Meetup

  • 228