react-popup

WebJar for react-popup

License

License

MIT
Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

react-popup
Last Version

Last Version

0.8.0
Release Date

Release Date

Type

Type

jar
Description

Description

react-popup
WebJar for react-popup
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/minutemailer/react-popup

Download react-popup

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-popup/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-popup</artifactId>
    <version>0.8.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-popup/
implementation 'org.webjars.npm:react-popup:0.8.0'
// https://jarcasting.com/artifacts/org.webjars.npm/react-popup/
implementation ("org.webjars.npm:react-popup:0.8.0")
'org.webjars.npm:react-popup:jar:0.8.0'
<dependency org="org.webjars.npm" name="react-popup" rev="0.8.0">
  <artifact name="react-popup" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-popup', version='0.8.0')
)
libraryDependencies += "org.webjars.npm" % "react-popup" % "0.8.0"
[org.webjars.npm/react-popup "0.8.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

React Popup

npm npm npm

Simple and powerful react popup component.
Part of Minutemailer.com - Marketing Simplified

 

Breaking changes in 0.9.x

The popup and overlay is now two separate layers to allow more customization. See demo css for styling example.

Global API approach

The idea behind react-popup is to use it as a drop-in replacement for the native window.alert. With the similarity of only displaying one popup at a time. This is why we use a global API to control the component instead of rendering it inside components. Maybe this is an anti-pattern, maybe it's not. Feel free to discuss it by opening an issue if one doesn't already exist.

Install

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

Documentation and demo can be found here: http://minutemailer.github.io/react-popup/

 

Minutemailer

org.webjars.npm

Minutemailer

Turn contacts into customers

Versions

Version
0.8.0