Skip to content

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>. Error Component Stack #120

@eriknyk

Description

@eriknyk

Describe the bug
I got the following Warn:

Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>. Error Component Stack

Exactly when <Lottie component is rendered.

image

To Reproduce
Steps to reproduce the behavior:

  1. Render any lottie json
  2. See warning: Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>. Error Component Stack

Expected behavior
No warning should be in console.

Screenshots
image

Additional context
Using version: "lottie-react": "^2.4.0",

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