Skip to content
Advertisement

Tag: setstate

Can a child method have change handler in React?

I was wondering why the child component with the changed value is not getting rendered here. Isn’t it a good idea to have a child handle its own changes or better to have the controller in the parent? This is the Child TodoItem As you can see the state is changed with handleChange() but this does not fire the render.

Advertisement