I want to use two tr tags in a return as below:
render() {
return<tr>row1</tr><tr>row2</tr>
}
and it gives me error: Adjacent JSX elements must be wrapped in an enclosing tag.
I know that we need to wrap these in a common component. But if I wrap there in a div tag for example:
return <div><tr>row1</tr><tr>row2</tr></div>
then my layout changes.
Is there any way to achieve the required.