Why props are read only in React
Theory
In React, props are read-only for several important reasons, primarily related to the principles of functional programming and the architecture of the React component model. Here are the key reasons:
1. Immutability for Predictability
Immutabi...
sunneysood.hashnode.dev3 min read