React mentions the pitfalls of using useId hook for generating keys herepitfall because it will never be the same key between two different renders for React to compare during reconciliation of DOM.