7 months ago
If you have a hyperlink on any image or text and you want to open that URL of a Link in same Tab in ReactJs, you have to make below changes:
Sample Code:
<Link
target="_self"
rel="noreferrer"
class="f-17 line-h-23 fw-700 me-1"
to={`https://www.xeloxo.com`}>
<img src="" alt="img"/>
</Link>
How to Open URL of a Link in a New Tab in ReactJs?
Software Tester at Accenture Bangalore
7 months ago