I\'m trying to find the proper way to define some components which could be used in a generic way:
For any one who has a single child element this should do it.
{React.isValidElement(this.props.children) ? React.cloneElement(this.props.children, { ...prop_you_want_to_pass }) : null}