2 ms·
It is not much better. It is something different. It's popular because of the way React works. It is not always correct because it is easier to understand ho
by wolco 7y ago
It is not much better. It is something different. It's popular because of the way React works. It is not always correct because it is easier to understand how state changes. Using array push over concat shouldn't make understanding more difficult and using the slower function for this reason is missing the point.