react-freeze-body

Apply overflow hidden to the document.body the react way.

Usage no npm install needed!

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

README

react-freeze-body

Add overflow: hidden; to the document.body, the react way.

Pass html in as a prop to conditionally freeze html too!


Install

$ npm install react-freeze-body --save

Usage

import ReactFreezeBody from 'react-freeze-body'

render () {
  return (
    <ReactFreezeBody />
  )
}

MIT © Jack Hanford