|
if (!footnotes.has(footnote.idRef)) { |
|
footnotes.set(footnote.idRef, footnote) |
|
} |
↑why don't we use description as a idRef in our Map ?
here i tried to recreate the problem i had↓
https://codesandbox.io/s/react-a11y-footnotes-forked-23d672?file=/src/App.js