title: How to set two different api values in one state (React.js)
body: <pre><code>const [PostData, setPostData] = useState([]);
  const firstURL = &quot;https://jsonplaceholder.typicode.com/posts&quot;
  const firstCall = async () =&gt; {
          const response = await fetch(firstURL);
          const data = await response.json();        
                  setPostData([...PostData,data]);             
          ;}
   const secondURL = 'https://api.unsplash.com/photos/?client_id=rH_dPHBqacF8Ii1nvep9W5fNuR2cXF2URLxVrFKs_eQ'
  const secondCall = async () =&gt; {
              const response = await fetch(secondURL);
              const data = await response.json();
              setPostData(PostData =&gt; PostData.concat(data))    }
  console.log(PostData);
  </code></pre>
  <p>I want to conact first API data with second data
  and then i want to  use it with one state like postData
  is it possible?
  if not give me another easy solution</p>