conditionally pass prop code example
Example: give a prop only if pass condition
<Child {...(this.props.editable ? {editable: {this.props.editableOpts}} : {})} >
<Child {...(this.props.editable ? {editable: {this.props.editableOpts}} : {})} >