79648260

Date: 2025-06-02 06:35:27
Score: 1
Natty:
Report link

i think this is the quick approach you can take and show Loading... text of the basis of api response there are multiple way to handle this case its up to you

{user ? (
      <h2 className="mb-4">Hi, {user.firstName}!</h2>
    ) : (
      <h2 className="mb-4">Loading...</h2>
    )}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Akash Bhatt