I need help testing the API call in Onclick Function
export function functionName (a, b, c){
const handleValue = async() =>{
axios.get(url, {method: 'post', body:{a: "a"}};
}
return <div>
{getvalue &&
<Button Onclick= {handleValue}>Button </Button>}
</div>
}
Please help me understand how to do this?