Nov 24, 2022
Many developers prefer immutability, as it is easier to reason about and can prevent some classes of bugs. In React, you'd never see the Array update, because React does a compare by reference.
Many developers prefer immutability, as it is easier to reason about and can prevent some classes of bugs. In React, you'd never see the Array update, because React does a compare by reference.
Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.