A simple enhancement, as the title suggests. Using Component.propTypes will make it easier for developers who use IDEs to view the list of props that the component has, and see suggestions for prop names as he types. Also, in case any prop was made isRequired, a warning will be shown to the developer to insert required attribute... by the inspector.
A simple enhancement, as the title suggests. Using
Component.propTypes
will make it easier for developers who use IDEs to view the list of props that the component has, and see suggestions for prop names as he types. Also, in case any prop was madeisRequired
, a warning will be shown to the developer toinsert required attribute...
by the inspector.