Topic: MDBTypography console warnings
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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- User: 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
Related topics
Piotr Glejzer staff commented 5 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 commented 5 years ago
Great. Thanks! Will do.