Hide empty HTML Element

01/08/20181 Min Read — In CSS

CSS TIP: Hide a HTML element when have no content inside

.my-component:empty {
  display: none;
}