Oct 10, 2022
That's only true if you build the object every render. If, for example, you pass it in through props or create it in useMemo, this will not happen.
That's only true if you build the object every render. If, for example, you pass it in through props or create it in useMemo, this will not happen.
Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.