const ApiResponse = ({ response, error, loading }) => { if (loading) { return (

Response

Loading...

); } if (error) { return (

Error

          {JSON.stringify(error, null, 2)}
        
); } if (response) { return (

Response

          {JSON.stringify(response, null, 2)}
        
); } return null; }; export default ApiResponse;