I have an outstanding Bounty on a SO question for how to write a reusable useRef hook that only runs on the very first mount under StrictMode conditions:
https://stackoverflow.com/questions/71695213/equivalent-isfi...