Skip to content

maciekmp/react-frame

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

React components within an iframe for isolated css styling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.1%
  • HTML 8.6%
  • CSS 1.4%
  • Makefile 0.9%