title: How to render html tag on React while fetching data from json
body: <p>How to render HTML tag on React while fetching data from json. In my json data contains <code>&lt;h2&gt;</code> tag but it fails to render <code>&lt;h2&gt;</code> tag.</p>
  
  <p>here is  my code</p>
  
  <pre><code>const [items, setItems] = useState({"data" : `"&lt;h2&gt;hi&lt;/h2&gt;, this is a car"`})
  return (
          &lt;div&gt;
            &lt;p&gt;{items.data}&lt;/p&gt;
          &lt;/div&gt;
  )
  </code></pre>
  
  <p>The output is coming as </p>
  
  <pre><code>"&lt;h2&gt;hi&lt;/h2&gt;, this is a car"
  </code></pre>
  
  <p>but expected output should be</p>
  
  <p><strong>hi</strong> ,this is a car</p>