question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I create multiple windows?

See original GitHub issue

I tried something like this but it didn’t work. Nothing appeared.

{tabs.map((tab, index) => {
    <NewWindow key={index} url={tab.url} title={tab.url}/>;
})}

If I put 2 NewWindow together like this then it worked normally. 2 windows were opened.

<NewWindow  />
<NewWindow  />

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
thaindqcommented, Apr 5, 2018

Hey @rmariuzzo, I found the bug and it was my fault. I didn’t notice that the returning of my arrow function was wrapped by curly braces, so it returns nothing. It should indeed look like this.

{tabs.map((tab, index) => 
    <NewWindow key={index} url={tab.url} title={tab.url}/>
}

Thank you for your support 😄

1reaction
thaindqcommented, Apr 5, 2018

Thanks, I have to go now but I’ll try to recreate that on codesandbox later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple desktops in Windows - Microsoft Support
Create multiple desktops. On the taskbar, select the Task view icon, then select New desktop. Open the apps you want to use on...
Read more >
Windows 10: Tips for Managing Multiple Windows - GCFGlobal
In Windows 10 multiple windows can be open simultaneously. ... To create a new desktop, open Task view, then select New desktop near...
Read more >
How to use multiple desktops in Windows 10
How to use multiple desktops in Windows 10 ; Click New Desktop. (It's located in the top left corner of your screen.) Click...
Read more >
Multiple windows in PyQt5 - Python GUIs
Creating a new window. In Qt any widget without a parent is a window. This means, to show a new window you just...
Read more >
How do I create multiple windows? - TradingView
To work in multi-window mode, you need to create new windows using the New Window command in the drop-down menu of the window...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found