Reputation: 609
How do I concatenate these two variables into the a tag href in react jsx? I can't seem to get the quotations correct.
<div>Address: <a href='http://maps.google.com/?q=@{tooltipproperis.Lat},{tooltiproperis.Long}&t=h&z=2 targe=blank'>{tooltip.properties.Street}, {tooltip.properties.City}, {tooltip.properties.State},{tooltip.properties.Zip}</a></div>
Upvotes: 0
Views: 63
Reputation: 53884
You misplaced a quote mark:
<div>
Address:
<a href="http://maps.google.com/?q=@{tooltipproperis.Lat},{tooltiproperis.Long}&t=h&z=2 targe=blank">
{tooltip.properties.Street}, {tooltip.properties.City},{' '}
{tooltip.properties.State}, {tooltip.properties.Zip}
</a>
</div>
Upvotes: 1