Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
281 views
in Technique[技术] by (71.8m points)

reactjs - How to create child window in electron-react application?

When i open the application it starts with login form. I want to close that window on succes login and open another one with main page. How can i do it in context of using react app for UI? I need to run another react app or i can somehow use same app and just open app in other windows?

question from:https://stackoverflow.com/questions/65938717/how-to-create-child-window-in-electron-react-application

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Every Electron window runs in a separate renderer process, so you can't use the same instance of your React app in another window. You can theoretically use the same app, as in open a new window with another instance of the same app and simply display a different view.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...