Higher Order Component implementation in React