2 ms·
It might be still called React but will be completely different. How similar are React + hooks + redux to React of 4 years ago? We call both React but it's hard
by weatherlite 4y ago
It might be still called React but will be completely different. How similar are React + hooks + redux to React of 4 years ago? We call both React but it's hardly similar.
Fast forward 10 years from now...
- reducesuffering 4y agoTrue, however even redux is on its way out. Dan Abramov, the creator, doesn't particularly recommend it anymore. Now, you'll see more React-Query and into the future: use() hook and SSC (Server Side Components)
- acemarke 4y agoFWIW, my estimates show that Redux is still used by 35-40% of React apps [0]. That's definitely less than it was a couple years ago, but still the largest usage of any React-related state lib by far. (It's also worth noting that Dan stopped working on Redux in 2016 after one year and handed it over to Tim Dorr, myself, and now Lenz Weber, and has not been involved with Redux since then.) On the flip side, usage of our modern Redux Toolkit package continues to go up fairly rapidly (to the point that RTK by itself is more widely used than other libs like Mobx or Zustand), and we get tons of positive feedback daily from folks who enjoy using it. Also, Redux Toolkit's "RTK Query" data fetching and caching API also addresses the same use case as React Query, with some unique features and capabilities (OpenAPI/GraphQL codegen, streaming updates, cache lifecycles) [1]. So, while Redux will never be the "must-have" it was in 2016-17, it's still an excellent choice in many cases, and still very widely used. [0] https://blog.isquaredsoftware.com/2022/07/npm-package-market-share-estimates/ https://blog.isquaredsoftware.com/2022/07/npm-package-market... [1] https://redux-toolkit.js.org/rtk-query/comparison https://redux-toolkit.js.org/rtk-query/comparison