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