React suggests to Transfer Props. Neat!
How can I transfert all but one?
render: function(){
return (
What you need to do is to create a copy of the props object and delete the key(s) you don't want.
The easiest would be to use omit
from lodash
but you could also write a bit of code for this (create a new object that has all the keys of props except for one).
With omit (a few options at the top, depending on what package you import/ES flavor you use):
const omit = require('lodash.omit');
//const omit = require('lodash/omit');
//import { omit } from 'lodash';
...
render() {
const newProps = omit(this.props, 'one');
return ;
}