React | React with TypeScript | Question 2

Last Updated :
Discuss
Comments

What will happen if a component receives an invalid prop type when using PropTypes?

The app will crash

A warning will be logged in the browser console

The component will ignore the prop

The app will ignore the component

Share your thoughts in the comments