react-frame

React components within an iframe for isolated css styling

Usage no npm install needed!

<script type="module">
  import reactFrame from 'https://cdn.skypack.dev/react-frame';
</script>

README

react-frame

npm npm Build Status codecov styled with prettier

React components within an iframe for isolated css styling

Installation

npm install react-frame --save
yarn add react-frame

Demo

https://swiftcarrot.dev/react-frame

Usage

<Frame styleSheets={['frame1.css']} css={'body{background-color:#eee;}'}>
  <div className="title">frame</div>
</Frame>

License

MIT