How to Wrap a React Component that Returns Multiple Table Rows and Avoid the “<tr> Cannot Appear as a Child of <div>” Error?
Published in
2 min readDec 21, 2023
Sometimes, we may see the “<tr> cannot appear as a child of <div>” error in React when we wrap a div around a table row.
In this article, we’ll look at how to fix the “<tr> cannot appear as a child of <div>” error in React.