Closed zabihshaik closed 1 year ago
In the APIs hook section of the docs, there is a typo/error in the Code snippet of useGitHub hook.
const { data, error, isLoading } = useGitHub(username);
username
return (
Loading...
{error?.message ?? "Something went wrong"}
{data.login}
);
OS: Windows 10 Browser: Google Chrome
No response
Descrcibe the bug?
In the APIs hook section of the docs, there is a typo/error in the Code snippet of useGitHub hook.
Steps to reproduce the bug?
const { data, error, isLoading } = useGitHub(
username
);return (
Loading...
} {error &&{error?.message ?? "Something went wrong"}
} {data &&{data.login}
});
Expected behavior
const { data, error, isLoading } = useGitHub(
username
);return (
Loading...
} {error &&{error?.message ?? "Something went wrong"}
} {data &&{data.login}
});
Desktop (Please provide your system information)
OS: Windows 10 Browser: Google Chrome
Mobile (Please provide your device information)
No response
Screenshot / Screenshare
Relevant log output
No response
Code of Conduct