REACT ERROR cannot appear as a child of . See (unknown) > thead > th

后端 未结 4 1017
青春惊慌失措
青春惊慌失措 2021-02-11 11:56

I am working on a react - rails app and I keep getting this error in my console:

```
Warning: validateDOMNesting(...):  cannot appear as a child of &l         


        
4条回答
  •  春和景丽
    2021-02-11 12:40

    Mistakenly, I had tbody inside thead

    (1)

    
    ...
      
      ...
      
    
    

    instead of (2)

    
    ...
    
    
    
    ...
    
    

    Changing to (2) solved my problem.

提交回复
热议问题