DEV Community

Discussion on: If we don't use redux-thunk or redux-saga, what do we use?

Collapse
 
sunflower profile image
sunflowerseed

you don't use Redux but just use a context? does that mean when data updates the whole App's components render() are called?

Collapse
 
lacasa profile image
𝙻𝚊𝚌𝚊𝚜𝚊

Nope, good thing about using Context, you can create more than one. Also, only the components "subscribed" to a context will rerender if the context changes. It's basically the same as REDUX.

You have a great example of how to do it here: kentcdodds.com/blog/how-to-use-rea...