Sergey750il2022-04-21 22:17:16
Sergey750il, 2022-04-21 22:17:16

How to change props?

Good day. There is a component, data comes to it through props, in this component there is a child with a button through which we launch the action and how should we change the data in the props of its parent? How can I change the props of the parent?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
imko, 2022-04-22


Albert Efremov, 2022-04-23

You can't change props. Otherwise, you can take it like this, change the props somewhere, and in another place it will come out in the form of a mustachioed, striped bug. And why, you will not immediately understand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question