Components & JSX3 / 14
Up next

Self-closing tags

function Divider() {
  // elements with no children must self-close
  return <hr />;
}

export default Divider;
What you're solving

tags without children close themselves