Skip to content
Advertisement

Tag: web-deployment

Controlled from in React

I’m new in react and I’m a bit confused about how React runs update on every new input’s keystroke, for exapmpe, this is the form and I want to update the state on every keystroke What I don’t understand here is the update cycle, my understanding is the following: As the input’s value is tied to react state, the initial

How can I update the parent’s state in React?

My structure looks as follows: Component 3 should display some data depending on state of Component 5. Since props are immutable, I can’t simply save its state in Component 1 and forward it, right? And yes, I’ve read about Redux, but I don’t want to use it. I hope that it’s possible to solve it just with react. Am I

Advertisement