Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

React - append string to react variable with backtick

0 votes
61 views
added Apr 12 in React by lcjr Second Warrant Officer (6,120 points)
<a className="agency-url" target="_blank" href={`http://${agencyURL}`}>{agencyURL}</a>

 

1 Response

0 votes
responded Apr 14 by lcjr Second Warrant Officer (6,120 points)
<a
  href={`https://mysite.com/project/${agentItemData.project_param}`}
  className="btn btn-primary"
>
  View More
</a>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...