Other React + TypeScript resources
- me! https://twitter.com/swyx
- https://www.freecodecamp.org/news/how-to-build-a-todo-app-with-react-typescript-nodejs-and-mongodb/
- https://github.com/piotrwitek/react-redux-typescript-guide - HIGHLY HIGHLY RECOMMENDED, i wrote this repo before knowing about this one, this has a lot of stuff I don't cover, including REDUX and JEST.
- 10 Bad TypeScript Habits:
- not using
"strict": true
- using
||
for default values when we have??
- Using
any
instead ofunknown
for API responses - using
as
assertion instead of Type Guards (function isFoo(obj: unknown): obj is Foo {}
) as any
in tests- Marking optional properties instead of modeling which combinations exist by extending interfaces
- One letter generics
- Non-boolean
if (nonboolean)
checks - bangbang checks
if (!!nonboolean)
!= null
to check fornull
andundefined
- not using
- Ultimate React Component Patterns with TypeScript 2.8
- Basarat's TypeScript gitbook has a React section with an Egghead.io course as well.
- Palmer Group's TypeScript + React Guidelines as well as Jared's other work like disco.chat
- Sindre Sorhus' TypeScript Style Guide
- TypeScript React Starter Template by Microsoft A starter template for TypeScript and React with a detailed README describing how to use the two together. Note: this doesn't seem to be frequently updated anymore.
- Steve Kinney's React and TypeScript course on Frontend Masters (paid)
- Brian Holt's Intermediate React course on Frontend Masters (paid) - Converting App To TypeScript Section
- Mike North's Production TypeScript course on Frontend Masters (paid)
- TSX Guide by gojutin
- TypeScript conversion:
- Matt Pocock's Beginner's Typescript Tutorial
- Matt Pocock's React with TypeScript Tutorial
- You?.