function resetIdCounter() {
  // istanbul ignore next
  if ('useId' in React) {
    console.warn(
      `It is not necessary to call resetIdCounter when using React 18+`,
    )

    return
  }

  idCounter = 0
}
Resets idCounter to 0. Used for SSR.