r/reactjs • • Dec 04 '17

Beginner's Thread / Easy Questions (December 2017)

The last thread stayed open for about a month, so I guess we might as well make these monthly :)

Soo... Got questions about React or anything else in its ecosystem? Stuck making progress on your app? Ask away! We’re a friendly bunch. No question is too simple.

The Reactiflux chat channels on Discord are another great place to ask for help as well.

15 Upvotes

84 comments sorted by

View all comments

Show parent comment

3

u/dceddia Dec 09 '17

Yep, that's the big picture in a nutshell.

The reducer doesn't do any communication though. That would happen inside an async action creator ("thunk") or a saga or something. And even then, Redux itself is not doing any communication -- that's left to a library like fetch or axios.

1

u/masonjwhite Dec 09 '17

Great! Thanks so much for the feedback. Cheers!

1

u/wntrm Dec 10 '17

With async/await making it official in the js spec now, would you use async/await with thunk or redux-saga for async action creators?

4

u/dceddia Dec 10 '17

I still usually prefer thunks, even if they're using promises. Redux-saga is nice but it's "one more thing", and unless the use case is pretty complicated, I avoid the overhead.