A
A
Alexey Milyutin2019-05-24 15:39:52
React
Alexey Milyutin, 2019-05-24 15:39:52

How to manage state through a child component?

Good afternoon, I ran into a problem, it doesn’t work out to write the state change functionality from a child element, how is this done? There was an idea to use props, but props are read only. There is an idea to send the handleChange() method to the prop and change it, but in this case I don’t understand how to take the value from the child element. I'm confused and would appreciate any help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-05-24
@doppelgangerz

lifting state up

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question