From the course: React: Using TypeScript

Create web apps using the React component approach with TypeScript

From the course: React: Using TypeScript

Start my 1-month free trial

Create web apps using the React component approach with TypeScript

- [Instructor] When writing applications with React, you may sometimes find yourself looking at your code and hoping you'd have better typechecking or cleaner code or even better arrow prevention when building your javascript applications. React does have a few tools such as prop types and flow, but if you'd like a more mature option, this is where typescript comes into play. Typescript is a superset of javascript that implements many coding best practices and typechecking built in for approving your codes syntax and writing styles. If you've been looking for such a tool, you've come to the right place as we'll explore how to convert or write React applications, leveraging typescript tools and framework. Hi, I'm Manny Henri and it will be my pleasure to explore with you how best to leverage typescript into your React applications. First, we'll take a look at how to set up typescript into a React application and some basic conventions. Then we'll explore how to use types into React and how to use stateful and functional components within the context of using typescript. Next, we'll explore typescript interfaces to improve your React code. And finally, we'll conclude with visiting higher order components and how to work with them with typescript. So if you're ready to get started with typescript in React, open up your favorite editor and lets get started.

Contents