DEV Community

Discussion on: React PropTypes vs Typescript! Any experience?

Collapse
 
dhirajbhujbal profile image
Dhirajbhujbal

What if the API returns the garbage value
I think prop types have the functionality to handle this error how about the typescript how to handle it
I have checked that props types return an error in console.