Amy Blankenship
Jul 24, 2023

--

It's a bad solution tho. You just need to think of the initial state (coming from outside) and the current state (can be set from inside) as two different things, and then the performant solution is obvious.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

No responses yet