Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 762 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 762 Bytes

react-frame

React components within an iframe for isolated css styling

Installation

npm install react-frame --save

Notice: There is a warning in react development mode.

Warning: render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.

Demo

https://pqx.github.io/react-frame

Usage

<Frame
  styleSheets={['frame1.css']}
  css={'body{background-color:#eee;}'}>

  <div className="title">
    Parturient Ipsum Cursus Purus Justo
  </div>

</Frame>

License

MIT