v2.17.0
New
-
Classes that define a
render
public class field are now considered React components. For example:class Component extends SomeBaseComponent { render = someFunction; }
See #193 and fe55485. Thank you @birjolaxew!
-
Functions assigned to public class fields are now considered as methods. I.e. both function in the following example will be picked up by react-docgen:
class Component extends React.Component { method1() {} method2 = () => { }; }
Fixed
- Using array destructuring in class method parameters doesn't throw an error anymore. ( #197 )
Other
- Upgraded dependencies, especially
recast
( 760c426 ).