Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript React Components (2018) Managing State and Data Flow Update State Based on a Player's Index

Mahmoud Talass
Mahmoud Talass
9,274 Points

nothing is making sense...

is it normal that almost nothing is making sense to me? I literally cannot connect the code he is typing together in my head.

Mahmoud Talass
Mahmoud Talass
9,274 Points

I started getting more confused when he started connecting his components to each other and the main app using props

2 Answers

Joe Elliot
Joe Elliot
5,330 Points

It can be very confusing. I first did the Treehouse OOP 4-in-a-row challenge and for me, that was insanely complicated. The classes are all referencing each other like code spaghetti.

Even though I couldn't fully understand that challenge, I think it much better prepared me for this in understanding how components reference each other. So I would recommend others to do the same if they are feeling a similar way to the OP.

what did you start with?