v2.19.0
New
-
The names of class declarations and function declarations are now used as
displayNames (3f22b3c). -
In classes,
static get propTypes(){}is now inspected for propTypes. I.e. instead ofclass MyComponent extends React.Component {} MyComponent.propTypes = { disabled: PropTypes.boolean, };
you can now write
class MyComponent extends React.Component { static get propTypes() { return { disabled: PropTypes.boolean, }; } }
(23aa0fe)
Other
resolveToModulealso resolvesJSXIdentifiersnow (2c6e55a)