Releases: reactjs/react-docgen
Releases · reactjs/react-docgen
v1.3.0
react-docgen now understands the following constructs:
import foo from 'Foo';
import {foo} from 'Foo';
import {foo as bar} from 'Foo';
export var Component = React.createClass({});
var Component = React.createClass({});
export {Component};
export {Component as Foo};
export default Component;
export default React.createClass({});
You will now be able to use ES6 import
and export
declarations with your react components. However, to "detect" a React component, React.createClass(...)
must still be present in the source.
v1.2.0
Bump to v1.1.0 for publishing
- Extract composition detection logic from
propTypeHandler
into
propTypeCompositionHandler
.propTypeHandler
still delegates to
propTypeCompositionHandler
for backwards compatibility. - Expose an array of default handlers as
defaultHandlers
on the root
object. - Relax requirements for composition detection in spread properties (see
878d57d).