The TwitterTweetEmbed component is generally used inside blocks of text, that is, inside p elements. Therefore it would be best if it wouldn't rely on div elements internally or at least allow the consumer to pass a different element. Currently, react complains with:
Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.
in div (created by TwitterTweetEmbed)
....
Hi,
The TwitterTweetEmbed component is generally used inside blocks of text, that is, inside
p
elements. Therefore it would be best if it wouldn't rely ondiv
elements internally or at least allow the consumer to pass a different element. Currently, react complains with:Anyways, thanks for the lib!