message: Writing this simpler
diff: @@ -5,15 +5,12 @@ import {ITEM_CLASS, SELECTED_CLASS} from './FilterList'
  import {mapWhitespaceProps} from './props'
  function getCountComponent(count) {
  - if (count) {
  return (
  <span className="count" title="results">
  {count}
  </span>
  )
  }
  - return undefined
  -}
  export default function FilterListItem({children, count, selected, tag: Tag, ...rest}) {
  const {className} = mapWhitespaceProps(rest)
  @@ -23,11 +20,9 @@ export default function FilterListItem({children, count, selected, tag: Tag, ...
  rest.activeClassName = SELECTED_CLASS
  }
  - const countComponent = getCountComponent(count)
  -
  return (
  <Tag className={classes} {...rest}>
  - {countComponent}
  + {count && getCountComponent(count)}
  {children}
  </Tag>
  )
  