davidmfoley / react-router-modal

Simple modals for react-router 4
MIT License
153 stars 20 forks source link

Use React Portals #22

Closed sibelius closed 6 years ago

sibelius commented 6 years ago

React Portals solves how to render a Modal on top of every component

davidmfoley commented 6 years ago

I want to continue to support react 15 for now (since react-router-dom still does). When I drop support for v15, portals would be a good solution.

davidmfoley commented 6 years ago

From version 2.0, react-router-modal will use portals, which means:

  1. react 16.3 context will work correctly.
  2. react & react-dom version 16.3 or higher will be required

2.0.0-rc1 is out now.