I want to link a part of text to a url, in React. Here's an example of code.
{ abc ? <Random /> : 'Go to this page.'}
page needs to be linked to a specific url. Can anyone please help me with this?
{ abc ? <Random /> : <span> Go to this <Link to='/path'> page </Link></span>}
Hope this Helps It will Redirect you to the page you want.
like this :
{ abc ? <Random /> : <a href="https://www.google.com">go to google</a>}