rc-iframe

1.0.1 • Public • Published

rc-iframe

Installation

npm install rc-iframe --save

or

yarn add rc-iframe

Usage

import IFrame from 'rc-iframe';

export default class WhatEver extends React.Component {
    state = {
        text: 'Hello World',
    }
    
    render() {
        return (
            <div>
                <IFrame frameProps={{width: 500}}>
                    <p>{ this.state.text }</p>            
                </IFrame>        
            </div>
        );
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i rc-iframe

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

1.74 kB

Total Files

3

Last publish

Collaborators

  • i-rocky