There's more...

react-popup provides configuration to execute an action. In our example, we used that action to close the popup when the user presses the Close button, but we can pass Redux actions to do other things, such as send some information or even add forms inside our popup.

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.