Many React forks has interested immutable like Immer but I don't understand what the benefit immutable on the state management.
Application state is fundamentally mutable for handle user interaction etc.
I guess some forks using immutable solution without technical reason like cargo cult.
But I want to know those certainly use cases, so I'm glad to feel free comment your usage if any immutable solution user read this article! 🤗
Between rerendering the page or parts of it (in react it's called reconciliation phase) the previous state will be compared to the new state to check if updates are required. Now check the following example why it is useful to change the state immutable:
By changing the state mutable, the actual content of the state has to be compared, which could be a huge performance cost. So all comes down to performance in the end.
EDIT: You can check this great article on LogRocket (see "Performance optimizations in React").