Topic: MDBIframe not exists
Alpha Asset asked 6 years ago
I bought react pro.
But to import the MDBIframe to run the example sample on the site, it says it does not exist.
How can you solve it?
Anna Morawska staff answered 6 years ago
Hi there,
welcome on our support board. Regarding your issue - how does your import statement look like? It should be something like this:
import React from 'react';
import { MDBIframe, MDBContainer } from 'mdbreact';
class IframePage extends React.Component {
render() {
return (
<MDBContainer>
<MDBIframe src="https://www.youtube.com/embed/ozXDtSi5ByM" />
</MDBContainer>
);
}
}
export default IframePage;
Alpha Asset answered 6 years ago
Attempted import error: 'MDBIframe' is not exported from 'mdbreact'.
This is how it works.
I'm telling you to try the example source.
Anna Morawska staff answered 6 years ago
Hi there,
I've just checked it in a newly created CRA, and it works fine. Which version of mdbreact
do you use?
Alpha Asset commented 6 years ago
Sure. All other tags are done, not mdbiframe.
Anna Morawska staff commented 6 years ago
Please try to update mdbreact to the latest version
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: 4.11.0
- Device: Desktop
- Browser: Chrome
- OS: Windows 7
- Provided sample code: No
- Provided link: No