Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spread operator in default props breaks react-docgen #22

Closed
fkling opened this issue Sep 4, 2015 · 1 comment
Closed

Spread operator in default props breaks react-docgen #22

fkling opened this issue Sep 4, 2015 · 1 comment
Labels

Comments

@fkling
Copy link
Member

fkling commented Sep 4, 2015

Example:

var React = require('React');
var {PropTypes} = React;

var Component = React.createClass({
  getDefaultProps: function() {
    return {
      ...Foo.defaultProps
    };
  },
});

module.exports = Component;

Spread operator should be ignored for now.

@fkling fkling added the bug label Sep 4, 2015
@fkling
Copy link
Member Author

fkling commented Sep 4, 2015

Fixed in 3518f67.

@fkling fkling closed this as completed Sep 4, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant