r/reactjs • u/timmonsjg • Nov 01 '18
Needs Help Beginner's Thread / Easy Questions (November 2018)
Happy November! π
New month means new thread π - October and September here.
I feel we're all still reeling from react conf and all the exciting announcements! π
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. π€
π Want Help with your Code? π
- Improve your chances by putting a minimal example to either JSFiddle or Code Sandbox. 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! π
40
Upvotes
View all comments
Show parent comment
1
u/swyx Nov 29 '18
dont have time to look at your code rn but it seems you need to figure this out in plain javascript. its not really a react problem. how do you detect when the song is done playing? how do you fire off the next song when the first is done playing?
redux can help with this, together with redux thunk or redux saga or something similar. or you may prefer an explicit state machine approach, with xstate. or you can go real barebones and just hook stuff up yourself with no libraries.