0.1.0 • Published 7 years ago

react-portal-simpler v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

React Portal Simpler

Just appends React Component to the document.body, Nothing more

Hot to use

$npm install --save react-portal-simpler
import Portal from 'react-portal-simpler';

...

render() {
  return(
    <Portal className="sample">
      <div>
        <p>Child elements such as Overlay or Modal or Whatever you want.</p>
      </div>
    </Portal>
  );
}

Will return this

<body>
  ...
  <div id="react-root"></div>
  ...
  <div class="sample">
    <div>
      <p>Child elements such as Overlay or Modal or Whatever you want.</p>
    </div>
  </div>
</body>

Props

PropTypeRequired
childrenelementYes
classNamesstringNo
0.1.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago