Ah this is cool, like ember-wormhole in the ember world!
How were React devs doing modals, etc before?
How were React devs doing modals, etc before?
Alternatively, don't bother with all of this and just mount the modal into your children. Use CSS `position: absolute/fixed` to position it. Of course this assumes your ancestor elements don't have certain properties like `position: relative` or `transform` set, but this is usually not a problem.