J
J
Justique2021-08-25 23:14:19
React
Justique, 2021-08-25 23:14:19

React removechild not found?

When trying to overwrite the state, it falls off with an error

Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

As far as I understand, when rerendering a table, it tries to remove the missing element.
I am attaching a link to the sandbox.
Select some squares and press merge
https://codesandbox.io/s/serverless-leftpad-70nbl?...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexandroppolus, 2021-08-25
@Alexandroppolus

Don't mix React rendering with manual resaussing of elements. Otherwise, it turns out dual power, smoothly turning into anarchy (the mother of order).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question