I am wondering if it is possible to pop out a React component that has a whole Redux Store etc. into a new window with an iframe.
This is probably not possible to do but I wanted to see if anyone knew a way to achieve this?
The reason I want to popout the React component/application to a new window is so that I can keep the React App going while redirecting the user to another URL/Domain.
My React App/Component gets appended to a handlebars template using a <script>
tag and a CDN to our bundled React App.
You can use React Portal to open a new window and maintain it under React tree.
It’s a semi-long post so check out this post.
Using a React 16 Portal to do something cool
You can open a new window, do what you need to do, and forward the user to a different URL, which won’t affect your original window.