1

how to get id and text values . can anyone solve this. how to get text and id values this data is coming from api

useEffect(()=>{
    let baseUrl='fakeapi';
     fetch(`/${baseUrl}/getTodos`)
     .then(res=>res.json())
     .then(data=>{
         console.log(data)
         setData(data )
        }) 
},[])

this is data coming from api

Jamal Gewa
  • 47
  • 4

0 Answers0