FER202Xuất hiện trong 1 đề thi
Can PropTypes be used for both functional and class components?
Các lựa chọn
AYes, but the syntax for defining PropTypes is different for each type of component.
BYes. PropTypes can be used in both types of components.
CNo. PropTypes can only be used in functional components.
DNo. PropTypes can only be used in class components.