Kizspy | Question: 12 (Choose 1 answer)
Can PropTypes be used for both functional and class components?
A. Yes, PropTypes can be used in both types of components.
B. No, PropTypes can only be used in functional components.
C. No, PropTypes can only be used in class components.
D. Yes, but the syntax for defining PropTypes is different for each type of component.