celtic426
TTCTheo's Typesafe Cult
•Created by celtic426 on 5/22/2024 in #questions
Can you store refs in an object in React?
In a component we need 9 different refs (don't ask 🙂 ). If we put the refs in an object like this will they be referentially stable? I fear on every render the object will be reevluated, but using an object just makes it a bit cleaner.
3 replies