Skip to content

In this project I want to show you how we could use the API Portals of React to handle the state of a popup window opended from a component.

License

Notifications You must be signed in to change notification settings

ger86/react-portals-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⛩ React Portal: Windows

Description

In this project I want to show you how we could use the API Portals of React to handle the state of a popup window opended from a component.

React Portals provide a first-class way to render children into a DOM node that exists outside the DOM hierarchy of the parent component.

As the documentations states, React Portals could be useful when a parent component has an overflow: hidden or z-index style, but you need the child to visually “break out” of its container. For example, dialogs, hovercards, and tooltips.

You will learn

How to create a popup window with React Portals that shares the state with the parent component.

Run the project

Use yarn start to run the app in the development mode and open http://localhost:3000 to view it in the browser.

To read more

About

In this project I want to show you how we could use the API Portals of React to handle the state of a popup window opended from a component.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published