npm install react-modal-es6ReactJS Modal component (ES6 class)
* ReactJS component
* v.1.0
* add react-modal.js to React as component
* param openbtn={bool} - set if component will show button for opening modal. If set to false (or absent) modal will open automatically.
* param opentext={bool} - text for open button
* param content={variable or other component} - content for modal
* passing variable as content:
``
var democontent = some demo HTML;
opentext="open modal 1"
content={democontent}
/>
`
* passing other react component as content:
`
opentext="open modal 2"
content=
/>
``
* you need to position content with CSS inside modal.
http://codepen.io/dtasic/pen/zvJvRj
* dtasic@gmail.com