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

Object spread assignment does not work #178

Closed
vangelov opened this issue Jun 27, 2016 · 1 comment
Closed

Object spread assignment does not work #178

vangelov opened this issue Jun 27, 2016 · 1 comment

Comments

@vangelov
Copy link

After trying: let { imageUrl, ...otherProps } = props I get an 'Unexpected token' error when building.
After installing babel-plugin-transform-object-rest-spread it works, but is this the right solution?

@coryhouse
Copy link
Owner

Yep, that's to be expected since that plugin isn't included out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants