Closed pradhyumansinh9849 closed 1 year ago
let newArray = response.data.data.map((item) => {
return {key: item.id, value: item.skillName}
})
setAPIDataSkils(newArray);
let newArray = response.data.data.map((item) => {
return {key: item.id, value: item.skillName}
})
setAPIDataSkils(newArray);
ERROR Error: Objects are not valid as a React child (found: object with keys {id, skillName}). If you meant to render a collection of children, use an array instead.