title: What is the best way to repeat html code using javascript object?
body: <p>Using some js object like</p>
  
  <pre><code>links = {
      link1: "Text1",
      link2: "Text2",
      link3: "Text3"
  };
  </code></pre>
  
  <p>I want to create several <code>&lt;a&gt;</code> elements with <code>href</code> from keys and content from values, like</p>
  
  <pre><code>&lt;a href="link1"&gt;Text1&lt;/a&gt;
  &lt;a href="link2"&gt;Text2&lt;/a&gt;
  &lt;a href="link3"&gt;Text3&lt;/a&gt;
  </code></pre>
  
  <p>What is the best and the shortest way to do it using js or some popular js frameworks? </p>