function renderWhile(condition, component) {
  return branch(condition, renderComponent(component))
}
HOC that shows a component while condition is true
@param {Function} condition - function which returns a boolean indicating
whether to render the provided component or not
@param {React.Component} component - React component to render if condition
is true
@returns {HigherOrderComponent}