function useFetch(url) {
// TODO
}
fff
// usage
function Component({ url }) {
........ = useFetch(url);
 
return <>
...
</>
}