Skip to content

Declaratively apply overflow: hidden to the document.body

Notifications You must be signed in to change notification settings

hanford/react-freeze-body

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-freeze-body

Add overflow: hidden; to the document.body, the react HOC 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'

class Component {
  ..
}

export default ReactFreezeBody(Component)

MIT © Jack Hanford

About

Declaratively apply overflow: hidden to the document.body

Resources

Stars

Watchers

Forks

Packages

No packages published