Skip to content

Inky components do not render valid <table> HTML #18

@lawsumisu

Description

@lawsumisu

I make use of react-inky to generate email style templates, and I use enzyme to write unit tests for them. When I run my tests, I get warnings like:

Warning: validateDOMNesting(...): <tr> cannot appear as a child of <table>. Add a <tbody> to your code to match the DOM tree generated by the browser.

It seems like many of the components that use <table> tags do not include <tbody> tags to contain <tr> elements. Being a warning, this is more of a nuisance than a real issue, but would it be unreasonable to update all the Inky components to render valid tables?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions