Use TypeScript to develop react applications
Docs / Code to an accompanying video course on how to setup a react project with TypeScript.
Lessons
Future
- TypeScript's automatic understanding of built in attributes (id, key, children)
- The Type of react renderables
React.Node
. https://basarat.gitbooks.io/typescript/content/docs/jsx/tsx.html - Accepting components of a particular type, aka, How to accept a component as a prop https://basarat.gitbooks.io/typescript/content/docs/jsx/tsx.html
- Using refs. e.g.
foo: HTMLDivElement
orfoo: ClassComponent