The idea behind portals is to basically create a “React hatch” outside of the original DOM to an external source. You can now control external elements!

Read more