A lightweight and performant fullscreen overlay component using React portals to render anywhere you need them to
npm install react-portal-overlay 
A lightweight and performant fullscreen overlay component using React portals to render anywhere you need them to
``sh`
npm i react-portal-overlay
See the API Docs for a full overview of props and options.
`js
import React, { useState } from 'react';
import { Overlay } from 'react-portal-overlay';
export default () => {
const [open, setOpen] = useState(false);
return (
My overlay
);
};
``