Reactjs 如何在React JSX中连接标记?

Reactjs 如何在React JSX中连接标记?,reactjs,Reactjs,如何将这两个变量连接到react jsx中的a标记href中?我似乎找不到正确的报价 <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.propert

如何将这两个变量连接到react jsx中的a标记href中?我似乎找不到正确的报价

<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>
地址:

您放错了引号:

<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>

地址: