React Prop Types vs Typescript

Viewed 4079

If I use typescript in my project, would that make the usage of prop-types in React obsolete? With prop-types I would have to go through the grunt of defining types but with typescript, this step would be negated. AM I correct in my thinking?

2 Answers

I think you don't need prop types if you use typewriting. Typescript is a good solution for strong typing, but for this you need to write more code. Props Types provide you efficient typization and small code blocks for you classes or functional components

Related