DEV Community

loading...

Discussion on: what Backend is recommended for VUE or REACT?

Collapse
aisirachcha21 profile image
Ryan Kuruppu

Well everything has its pros and cons. But frankly if you do it right react with hooks is more helpful than you realize. When things start messy that's when you should start looking into the context API and then if it gets more complex you'll need to look into state Management libraries like Redux or MobX

Thread Thread
devhammed profile image
Hammed Oyedele

Things getting messy using context API depends entirely on the Developer.

Thread Thread
aisirachcha21 profile image
Ryan Kuruppu

Not if you're using for it's designated purpose. If you end up making contexts for too many things then you've missed out on using something like Redux to reduce that problem. But using Contexts for the right problem is what makes it useful

Thread Thread
devhammed profile image
Hammed Oyedele

You have been lied to, there is absolutely nothing wrong with context API or creating contexts to handle different things, even react-redux uses it under the hood.

Thread Thread
aisirachcha21 profile image
Ryan Kuruppu

I never said there was anything wrong with it. I simply meant that there's a time and place to use the Context API and that you shouldn't use it for everything. There are times where you may need to shift to something bigger like redux. But you shouldn't if it's not required.