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.

14 Upvotes

84 comments sorted by

View all comments

Show parent comment

2

u/dceddia Dec 09 '17

I do the same, and then I have a loadAuthToken action that I dispatch right after I create my Redux store as an initialization step. I've also got a saveAuthToken action that I dispatch after a new token is received, and those load/save actions call out to localStorage.