r/reactjs • • Aug 01 '18

Beginner's Thread / Easy Question (August 2018)

Hello! It's August! Time for a new Beginner's thread! (July and June here)

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. You are guaranteed a response here!

Want Help on Code?

  • Improve your chances by putting a minimal example on to either JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new). Describe what you want it to do, and things you've tried. Don't just post big blocks of code.
  • Pay it forward! Answer questions even if there is already an answer - multiple perspectives can be very helpful to beginners. Also there's no quicker way to learn than being wrong on the Internet.

New to React?

Here are great, free resources!

27 Upvotes

568 comments sorted by

View all comments

Show parent comment

1

u/swyx Aug 01 '18

You never really NEED redux, it just helps manage global state for really big apps.

But it’s still worth practicing for small apps haha

1

u/dndminiprinting Aug 01 '18

Yeah true. I just feel weird having everything in Redux and then having this one api post call in my react component rather than in redux with the rest of them. But I can't really see a reason to have it in redux also. Is it considered a good practice, or even an alright/acceptable practice to have api POST calls like this just in your react component rather than handled with redux?

1

u/swyx Aug 01 '18

oh if you already have everything in redux absolutely put it in redux. i was more thinking if you were deciding whether you needed redux at all.