4 ms·
>> I've been working on a React side project for a few months now and looking at my company's apps plus posts like this I think people just miss the point. The
by yathaid 4y ago
>> I've been working on a React side project for a few months now and looking at my company's apps plus posts like this I think people just miss the point.
The clue is in if everyone is missing the point but you, may be start with more introspection. :)
I will give an example of a side project I am working on. The homepage has two sub components, one when the user is logged in, one when the user is logged out.
Now, when the user logs in, the state of the homepage parent component needs to change, the state of the nav bar needs to change etc.
Your problem is in assuming newState is completely described locally which isn't always the case.