Topic: MDBIframe not exists
Alpha Asset free asked 5 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 5 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 free commented 5 years ago
Sure. All other tags are done, not mdbiframe.
Anna Morawska staff commented 5 years ago
Please try to update mdbreact to the latest version
Alpha Asset free answered 5 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 5 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;
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: 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