react-set-style

0.0.1 • Public • Published

react-set-style

A component component that sets style on a DOM element.

Usage

import SetStyle from "react-set-style"

const MyApp = () =>
  <div>
    <SetStyle
      target={document.body}
      property="overflow"
      value="hidden"
    >
      <div>The body should be overflow: hidden</div>
    </SetStyle>
  </div>

Readme

Keywords

none

Package Sidebar

Install

npm i react-set-style

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • chantastic