After occupying myself a bit with learning React I still consider many of the concepts as hard to get.
Among other: The immutability of props.
If I get it right then components are, more or less, the equivalent to objects in object-oriented programming.
In object-oriented programming you pass data into objects via method-parameter. In React you got props for passing data into components.
If you pass a parameter to a Java-method then you can change these data within the method-body. No problem.
In React not possible because props are immutable.
All literature and stuff I've seen mentions these immutability as a important concept. But so far nobody have really told me why.
Can someone please tell me: What's the great benefit of having immutable props?
Or respectively: What would be the great disadvantage of not having immutability? What could happen if props are mutable instead?
Preferable as a good example. Then chances are bigger that I perhaps get it.