Topic: MDBTypography console warnings
Denzil free asked 3 years ago
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>
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?
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- 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