React | React with TypeScript | Question 9

Last Updated :
Discuss
Comments

What is the default behavior of PropTypes if no isRequired is applied?

The prop is optional and won't throw a warning if not provided

The prop is required and throws an error

The prop is automatically assigned a default value

The app will crash if the prop is not provided

Share your thoughts in the comments