Simple and powerful react popup component.
Part of Minutemailer.com - Marketing Simplified
The popup and overlay is now two separate layers to allow more customization. See demo css for styling example.
Install it with npm (or yarn) (npm install react-popup --save
). The component is API driven and means that you only render it once, on a global level. Here's a simple example:
import React from 'react';
import ReactDom from 'react-dom';
import Popup from 'react-popup';
ReactDom.render(
<Popup />,
document.getElementById('popupContainer')
);
Popup.alert('Hello');
Documentation and demo can be found here: http://minutemailer.github.io/react-popup/