Skip to content

Commit 13204c6

Browse files
authored
Always include destructuring transform (facebook#3788)
* Always include destructuring transform * Fix lint
1 parent 359a255 commit 13204c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export default class extends Component {
4040
return (
4141
<div id="feature-object-destructuring">
4242
{this.state.users.map(user => {
43-
const { id, name } = user;
43+
const { id, ...rest } = user;
44+
// eslint-disable-next-line no-unused-vars
45+
const [{ name, ...innerRest }] = [{ ...rest }];
4446
return <div key={id}>{name}</div>;
4547
})}
4648
</div>

0 commit comments

Comments
 (0)