Tbody in Column component
See original GitHub issueHi Guys!
I just want to ask about Column component. It has a
validateDOMNesting(...): <p> cannot appear as a child of <tbody>. appears. Components structure look like this:
<Html>
<Head />
<Section>
<Column style={{ width: '30%' }}>
<Text>Column 1</Text>
</Column>
<Column style={{ width: '70%' }}>
<Text>Column 2</Text>
</Column>
</Section>
</Html>
And after render to string, html is invalid because all columns move to
What is structure should be? What did I do wrong with these components?
Issue Analytics
- State:
- Created 9 months ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
<tbody>: The Table Body element - HTML - MDN Web Docs
This attribute is used to indicate the number of characters to offset the column data from the alignment characters specified by the char ......
Read more ><tbody> HTML Tag »
The tbody contains the body, or primary content, of an HTML table . Use it along with the thead and tfoot elements to...
Read more ><tbody> element is stuffed into first column of a table
You have to use "table-row-group", not "block" as the value of the "display" property when showing the table row group (the <tbody> )....
Read more >What is the <tbody> element in HTML? - Educative.io
The <tbody> tag stands for table body. In HTML, there are three parts of a table ( <table> tag): header, body, and footer....
Read more >HTML tbody tag - W3Schools
The <tbody> tag is used to group the body content in an HTML table. The <tbody> element is used in conjunction with the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Guys, i’ve been doing some changes regarding these two components (Column and Section). These components are pretty much linked, right? I mean, there’s no way to think in rows (vertical divisions) without thinking in columns (horizontal divisions) when we’re talking about tables. So, fully independently implementing these components doesn’t sound good to me. The Column component is responsible for creating
tdcolumns inside the Section component that createstrrows.I’ve also added a style that organizes, centers and assigns the same width to all columns inserted in the section. In other words, users don’t need to worry about it, but can change it if they want.
HTML static example: https://codesandbox.io/s/section-and-column-example-lic7bh?file=/index.html
You can try using with a
divortablefor now until we release a new version with the fix.