A
A
Artur Kudashev2019-05-21 16:19:18
React
Artur Kudashev, 2019-05-21 16:19:18

How to remove a component?

Hello, there is a Column component and it has a deleteColumn method. When you click on the button, you need to remove the component using its method. How to implement this without conditional rendering?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-05-21
@archi_kud

Correctly render similar components as a list:
And manipulations on addition and removal to make with the data.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question