0

In my react app, I want to use redux,

now there are standard redux and react-redux library, what would be the best approach how to use them? I have seen them both used in many apps, would it be too tedious or complicated to use only redux? And can I use react-redux without redux anyway?

is there maybe any other simplified redux based architecture library for react out there?=

MMMM
  • 3,320
  • 8
  • 43
  • 80
  • 4
    They do different things. `redux` handles the store, and `react-redux` handles the connection between the store and the components. You'll most likely need both (which is why you always see them together). You definitely can't use `react-redux` without `redux` tho. – Andy Jul 18 '19 at 08:25
  • 2
    you can look at What are diffrences https://stackoverflow.com/a/38405713/8511126 – Erhan Namal Jul 18 '19 at 08:29
  • thanks guys, that clarifies the scope / usage of both packages a bit more... One more question: Would I have to use redux-thunk mandatorily in addition if I use async operations in actions, like e.g a database fetch? – MMMM Jul 18 '19 at 08:40
  • 1
    redux-thunk or redux-saga are the most popular libraries for handling side effects like async operations. You will most likely need one of those – Patrick Hund Jul 18 '19 at 08:46

0 Answers0