v2.19.0
New
-
The names of class declarations and function declarations are now used as
displayName
s (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
resolveToModule
also resolvesJSXIdentifiers
now (2c6e55a)