title: React (Map , Axios , useState) add usestae new value using map with axios
body: <p>here is a usestate so I want to add more customers using map</p>
  <pre><code> useEffect(() =&gt; {   
       getApiDAta()
       async function getApiDAta() {
           try {
             const response = await axios.get('http://localhost:5000/custumer/')
             .then(res =&gt; {setcustName(res.data)
             custName.map((items) =&gt; { 
               setSuggestions([items.firstname])
               console.log(suggestions);
               })
  
           })
             
           } catch (error) {
             console.error(error);
           }
         }
   },[]);
  </code></pre>
  <pre><code>const [custName,setcustName] = useState([])
     const [suggestions,setSuggestions] = useState(
          custName.map((items) =&gt; {
            return   [`${items.name}`];
         })
      );
  </code></pre>
  <p>i want to multiple item in suggestions so please help me</p>