function getHTMLDir(dir: BidiDirection): HTMLDir {
  invariant(
    isStrong(dir),
    '`dir` must be a strong direction to be converted to HTML Direction',
  );
  return dir === LTR ? 'ltr' : 'rtl';
}
Get string value to be used for `dir` HTML attribute or `direction` CSS
property.