Topic: MDBTypography console warnings

Denzil free asked 3 years ago


Hi,

We are seeing some console warnings using MDBTypography component inside MDBCard

          <MDBCardText>
              User 1


              Description
              <MDBTypography
                note
                noteColor="primary"
                className="text-sm-center text-left"
              >
                 Today Is the day
          </MDBTypography>
        </MDBCardText>

Warnings:

react_devtools_backend.js:2273 Warning: validateDOMNesting(...): <p> cannot appear as a descendant of <p>.

Failed prop type: Invalid prop `children` of type `string` supplied to `n`, expected `boolean`.

In regards to <>P its understandable as MDBCardText is <>P inside and MDBTypography is also. Can't we use MDBTypography inside MDBCard?

Thanks.


Piotr Glejzer staff commented 3 years ago

Hello,

this is just a warning that informs prop has a bad typing. Ignore this, for now, we have to change it in our package. I added the task to fix this.


Denzil free commented 3 years ago

Great. Thanks! Will do.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.27.0
  • Device: Mac Book Pro
  • Browser: Chrome
  • OS: Mac OS Catalina
  • Provided sample code: No
  • Provided link: No