3

Hi there!

What do you guys think about the feature "ContextApi" released with React 16.3?

From my point of view it is pretty neato to get rid of some dependencies coming up with redux, if the only thing you want is to distribute collected information among several components for rendering.

On the other hand, if one replaces the redux pattern with the context-api, the detailed information for debugging will be lost, including the time-travelling feature.

For compensation, there is a guy who had built a bridge between the context-api and the redux dev tools, which even will restore the ability to time-travel through the information flowing through the react context.

https://medium.freecodecamp.org/rep...

I will definitely try out a migration of our redux structure to context-api in an experimental branch of one of our products!

Comments
Add Comment