FrontEnd.ro logo
React.useId()

import { useId } from 'react';

const AddressControl = () => {
  const id = useId();

  return (
    <div>
      <label htmlFor={id}> Address </label>
      <input id={id} name="address" />
      {/* ... */}
    </div>
  );
}