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

后端 未结 4 992
青春惊慌失措
青春惊慌失措 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条回答
  •  梦毁少年i
    2021-02-11 12:28

    Well th should be nested under a tr not a thead. Docs

    name age
    john 33
    smith 22
    jane 24

提交回复
热议问题