React | React with TypeScript | Question 1

Last Updated :
Discuss
Comments

What is the purpose of PropTypes in React?

To style components

To provide runtime type checking for props

To optimize component rendering

To initialize state

Share your thoughts in the comments