A
A
aivazovski2018-12-24 12:51:32
React
aivazovski, 2018-12-24 12:51:32

Is it possible and how to correctly pass the content of a child component to its parent in a react-redux application?

Good afternoon.
I'm learning React, writing a todo list application for training.
There was a question on "correctness" of the approach.
I have a smart EditTodo component that displays a task edit form, with the form fields filled with information from the edited task.
Some parts of the form are implemented as stupid components, some as html markup.
With html, I can get information via refs, during the onSubmit of the form.
I know that there is a way to pass information from a child component to React, when the bind function passed to the parent component is passed to the prop of the child component. But is it correct to use it? Don't they provide redux, another way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-12-24
@aivazovski

Lifting State Up

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question