I have a fundamental question about reactive programming in react. As you know, a react component re-renders only if one of its props changes and does not aware of what happened inside the props. But I think this is not a good approach especially when you have a global state that most of your components subscribed it. Is it really a problem or I'm missing something?
A better approach may be using a reactive library like rx-js to broadcast the changes in the state. So the components rerender only if the changes are relevant to them. Is it a good approach to use rx-js in such cases? Why does react follow a different approach?