There is a function in React called useMemo()
const eg = React.useMemo(() => true, []);
If I included the same function twice, how would it know which memoization to return?
const eg1 = React.useMemo(() => Math.random(), []);
const eg2 = React.useMemo(() => Math.random(), []);
There's no explicit ID for either of these arrow functions, and -- that I know of -- there is no way to ID them except to perhaps hash their inner text. In this case, they'd both have the same ID.
What kind of funky magic is going on here?