At the first steps of getting into React-based UI applications, I kinda hated Redux stuff, because you really not getting enough benefits of having that's a match of a complexity and file structure inside an application, and also it comes out with a huge dependency, which is not required to have!
React Hooks actually replaced most of the stuff that you have to have when making an extensive React application. Same with Redux stuff, using React Hooks UseContext you can actually replace the entire Redux workflow, and not even think to have a dependency on that.
There is a lot more than you can use with React Hooks, for example, Apollo GraphQL client comes with defined hooks, which makes a lot more easier to connect to components and not worry about keeping API data somewhere available, it will be there anyway because it just keeps a cache of that.
#react #hooks #redux
8 сен 2024