79510952

Date: 2025-03-15 10:27:46
Score: 0.5
Natty:
Report link

Because Component.defaultProps is now deprecated and the React team recommend using the JavaScript defaultValue instead. This question is similar to the question asked here:

Unable to render/see the default value of a prop in React

Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Hamed Jimoh