1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| import React, {Component} from 'react'
| import PropTypes from 'prop-types'
|
| class Iframe extends Component {
| static propTypes = {
| title: PropTypes.string,
| url: PropTypes.string
| }
|
| render () {
| return (
| <iframe
| title={this.props.title}
| src={this.props.url}
| />
| )
| }
| }
|
| export default Iframe
|
|