title: I can extract the data from here and print it to the console, but I could not print it to the screen
body: <p>I can extract the data from here and print it to the console, but I could not print it to the screen.</p>
  <pre><code>import React, { useEffect, useState } from &quot;react&quot;;
  &quot;&quot;
  function App() {
    const [countries, setCountries] = useState([]);
  &quot;&quot;
    useEffect(() =&gt; {
      fetch(
        &quot;https://api.reservoir.tools/attributes/v1?collection=0xed5af388653567af2f388e6224dc7c4b3241c544&quot;
      )
        .then((response) =&gt; response.json())
        .then((response) =&gt; setCountries(response));
    }, []);
  
    var ass = countries.attributes[0].values.forEach(function (element) {
      return element;
    });
  
    return (
      &lt;&gt;
        {ass.element.map(function (item) {
          return &lt;h2&gt;{item}&lt;/h2&gt;;
        })}
      &lt;/&gt;
    );
  }
  &quot;&quot;
  export default App;
  </code></pre>