How to open link in new tab
See original GitHub issueAs **NavItem**
has div
element so we can not open link in new tab, is there anyway to convert div
element to a
also I have tried **componentClass='a'**
but it’s not working fine…!
Issue Analytics
- State:
- Created 4 years ago
- Comments:12
Top Results From Across the Web
3 Ways to Open a Link in a New Tab - How-To Geek
Ctrl + Click. The first method requires a keyboard and a mouse or trackpad. Simply press and hold the Ctrl key (Cmd on...
Read more >How to Use HTML to Open a Link in a New Tab - freeCodeCamp
It's easy to use HTML to open a link in a new tab. You just need an anchor ( <a> ) element with...
Read more >How to Open a New Tab When Clicking a Link in Google ...
To quickly open a link in a new tab on Google Chrome, hold down the control button while clicking on it with your...
Read more >How to Force Your Browser to Open a Link in a New Tab
You can load any link in a new browser tab by clicking or tapping on it while holding down the Control key (Windows)...
Read more >How to Make Links Open in a New Window or Tab
How to Open Hyperlinks in a New Browser Tab or Window ... The short answer is: just add a target="_blank" attribute to your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
here is a better solution
using withRouter add a onClick to the NavItem
onClick={() => { history.push('/admin-team') }}
this will allow you to use all the area in the nav item to click and change the route.
yeah that’s not a good solution @clintditto