I'm parsing content from REST API and images are placed in paragraphs.
Since Div in Paragraph is invalid and React is logging "Warning: validateDOMNesting(...): < div > cannot appear as a descendant of < p >."
Personally I would prefer to use < img > with transparent base64 src until it's loaded, and don't use any extra wrappers.
I'm parsing content from REST API and images are placed in paragraphs. Since Div in Paragraph is invalid and React is logging "Warning: validateDOMNesting(...): < div > cannot appear as a descendant of < p >." Personally I would prefer to use < img > with transparent base64 src until it's loaded, and don't use any extra wrappers.