Uncaught Error: Invariant Violation: findComponentRoot(…, …$110): Unable to find element. This probably means the DOM was unexpectedly mutated

后端 未结 8 513
情深已故
情深已故 2020-11-29 05:43

What I\'m doing wrong with nested cycles in React? I have searched information in Google and I didn\'t find anything suitable. Can you help me find, what I understand wrong?

8条回答
  •  一生所求
    2020-11-29 06:14

    So the problem is you're creating a virtual DOM structure like this:

    
       
          
    ... ...

    Because

    isn't a valid child of the browser actually creates DOM representing this:

    ... ...

    fiddle

    When react goes to update, it's looking at that and wondering where the

    went. Instead it finds a so it throws an error.

提交回复
热议问题