React props question

As we’ve said several times, if you want to change the state of the parent (which is passed to the child as a prop), then you pass in a callback function. Several times I’ve provided a link to a pen that shows you exactly how to do that. We explain it in this thread is an example of one of those discussions. And here. I seem to remember others. Between threads and PMs, I feel like this has been explained 5-6 times. I suspect that it is not sticking because we are lacking some fundamentals.

I will once again say (with increasing frustration) that I think you need to study some basic JS and React. You keep asking questions that are beyond your grasp at the moment. It’s like you are asking why your race car won’t go faster and we say that you’ve got to push in the clutch and shift gears. And then you ask what those are.

People at FCC have spent hours and hours and hours developing materials to teach you these exact things that you want to do. But you seem to want to just jump into intermediate JS and React and have people swarm around you and answer your questions.

I will say, once again, either do the FCC materials or find something like it. Not only will that be faster and easier, but you have less of a chance of picking up bad habits or incorrect understanding. You can’t learn to fly an airplane by buying an airplane, trying to fly it, and asking for pointers from random strangers. Or maybe you can, but your road to being a great pilot will be much longer (and more dangerous) than it needs to be.

1 Like