Pop New Windows In React

A component to pop new windows in React, using window.open api.

Features:

  • Only 2.68KB (gzipped!).
  • Support the full window.open api.
  • Built for React 16 (uses ReactDOM.createPortal).
  • Handler for blocked popups (via onBlock prop).
  • Center popups according to the parent window or screen.

Installation:

# Yarn
$ yarn add react-new-window

# NPM
$ npm install react-new-window --save
import React from 'react'
import NewWindow from 'react-new-window'

Preview:

Pop New Windows In React

Download Details:

Author: rmariuzzo

Live Demo: View The Demo

Download Link: Download The Source Code

Official Website: https://github.com/rmariuzzo/react-new-window

License: MIT

Add Comment