React with TypeScript

  • You can create stateful React Components in TypeScript by extending from the React.Component class.
  • This parent class takes two generic parameters, Props and State.
  • This lessons shows these generic parameters and React.Component in action

Tips and tricks on using React with TypeScript


@basarat: My current #Free lessons on egghead for #TypeScript + #ReactJS as a playlist :

#JavaScript 🌹

Setup a TypeScript + React project from scratch using webpack. Learn the reason behind every line that you need to type and become an expert.

You can create a stateless React component in TypeScript by just creating a function.

interface. This is demonstrated in the video.

You can create stateful React Components in TypeScript by extending from the React.Component class. This parent class takes two generic parameters, Props and State.

This lessons shows these generic parameters and React.Component in action

React with TypeScript