📅  最后修改于: 2022-03-11 14:50:48.842000             🧑  作者: Mango
// Post a request for a user with a given ID
render() {
return (
{(error, response, isLoading, makeRequest, axios) => {
if(error) {
return (Something bad happened: {error.message} )
}
else if(isLoading) {
return (Loading...)
}
else if(response !== null) {
return ({response.data.message} )
}
return (Default message before request is made.)
}}
)
}