Typescript and React

An “It” Power Couple

Coral Fussman
2 min readNov 28, 2020

What is Typescript, and why do we bother with it? If you’ve already looked into Typescript you’re probably tired of hearing that it is a superset of javascript. Broadly speaking it is javascript but with bonus features that we get from the typescript scaffolding we lay over our application.

Typescript Pros…

Interfaces- makes code predictable because we define what type of data our component or function will be working with. Javascript like many other languages has a few different types of data. However it differs from many other languages in that it doesn’t get picky about declaring those types. If you’re familiar with Java then you’ve already had to declare if your block was going to be a string, number etc. Typescript applies these same declarative rules to help maintain and organize your code.

Editor Support- Inteleseness or autocomplete is a nice little perk of typescript. it comes with plenty of shortcuts and and intuitive guessing on what labels…

--

--

Coral Fussman

Full Stack developer — Passionate about simplifying concepts, design, and innovation.