title: can´t access specific element of my array React
body: <p>I've a problem with my react app.The navbar worked correctly before the ItemDetailContainer, and i want to show in the DOM an specific product. When adding the ItemDetailContainer to app.js, the page doesn't show anything (including the navbar) . Here's my code:</p>
  <p>ItemDetailContainer.jsx:</p>
  <pre><code>const {products} = require('../utils/data');
  
  const ItemDetailContainer = () =&gt; {
      const [arrayList, SetArrayList] = useState({});
  
      useEffect(() =&gt; {
          customFetch(2000, products[0])
              .then(result =&gt; SetArrayList(result))
              .catch(err =&gt; console.log(err))
      }, [])
  
      return (
          &lt;div&gt;
              &lt;ItemDetail products={arrayList}/&gt;
          &lt;/div&gt;
      );
  }
  </code></pre>
  <p>here's my array in data.js that i want to access:</p>
  <pre><code>const products = [
      {
          id: 1,
          image: &quot;https://baltimore.com.ar/img/articulos/4188.png&quot;,
          title: &quot;Vino Abras Malbec 750cc&quot;,
          price: 2.500,
          stock: 8,
          initial: 1
      }
  </code></pre>
  <p>ItemDetail.jsx:</p>
  <pre><code>const ItemDetail = ({product}) =&gt; {
      return(
          &lt;&gt;
          {product.image}
          {product.title}
          &lt;/&gt;
      )
  }
  </code></pre>
  <p>CustomFetch.js:</p>
  <pre><code>let is_ok = true
  
  let customFetch = (time, array) =&gt; {
      return new Promise((resolve, reject) =&gt; {
          setTimeout(() =&gt; {
              if (is_ok) {
                  resolve(array)
              } else {
                  reject(&quot;error&quot;)
              }
          }, time)
      })
  }
  </code></pre>
  <p>and my app.js:</p>
  <pre><code>function App() {
    return (
      &lt;div&gt;
        &lt;Navbar/&gt;
        &lt;ItemDetailContainer/&gt;
      &lt;/div&gt;
    );
  }
  </code></pre>
  <p>I've done all the imports and exports, but I dont' know what's the problem.</p>