react 中嵌入iframe 高度自适应

项目需求在react 嵌入iframe

高度自适用

直接上代码

import React from 'react';
import ReactDOM from 'react-dom';
import { Row, Col, Icon, Button, Layout, Menu, Card } from 'antd';


export default class Index extends React.Component {

  constructor() {
    super();
    this.state = {
        iFrameHeight: '0px'
    }
}



  render() {
    return (