score:1

Accepted answer
const props = {
  classes: 'this is a value',
  theme: 'foo',
  hidden: false,
  otherProp1: 'other 1',
  otherProp2: {
    nestedProp: 'nested value',
  },
};

const { classes, theme, hidden, ...other } = props;

console.log(classes);
console.log(theme);
console.log(hidden);
console.log(other);

Related Query

More Query from same tag