I have a generic function that takes a react component and returns it wrapped in another component, something similar to recompose pattern.
const inject =