Closed NeXTs closed 2 years ago
@LouisBarranqueiro do you need it to be p
? What downsides if it will be changed to div
by default?
👋 , I don't remember exactly why I put a p
instead of div
I guess because I didn't think about your use case. Tested with a div
and it looks the same. gonna make the change.
Description
I want to be able to specify tag of Message component. I need to do it
div
instead ofp
Explanation / motivation
Because I inserted React component inside Message and receive a warning
Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.
Additional information