3 ms·
React hooks do not solve the same problem as Redux. Hooks solve the problem: how do I share functionality (logic) between stateless, functional components. Re
by kansface 7y ago
React hooks do not solve the same problem as Redux. Hooks solve the problem: how do I share functionality (logic) between stateless, functional components. Redux is for sharing data. Besides sharing data, (React-)Redux is (or at least was) way more efficient because it can preemptively avoid rendering altogether.
> If your back-end is something like a wire protocol over ws where you've already structured everything as "actions" or "messages" it's a decent fit
Redux has been fine for every API I've every used. Maybe you've only seen crazy codebases where people write a unique action generator/action_type/reducer for every single endpoint, but that isn't exactly a problem with Redux.