If you don't mind using a third-party library, you can also use the lodash omit function:
{ ..._.omit(this.props, ['className', 'id']) }
The main advantage: unlike the madox2 proposal, you do not pollute the scope with arbitrary variable names in order to avoid passing certain details to the child components. And also, while writing this answer, you are not dealing with the experimental features of ES.next.
source share