Skip to content

i-rocky/rc-iframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rc-iframe

Build Status Version Total Downloads License

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>
        );
    }
}

Releases

No releases published

Packages

No packages published