reactplay / docs

Documentation for ReactPlay.
https://docs.reactplay.io/
MIT License
27 stars 13 forks source link

🐛 [Bug report]: Typo/Error in Code snippet of useGitHub hook #71

Closed zabihshaik closed 1 year ago

zabihshaik commented 1 year ago

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 &&

Loading...

} {error &&

{error?.message ?? "Something went wrong"}

} {data &&

{data.login}

}

);

Expected behavior

const { data, error, isLoading } = useGitHub(username);

return (

{isLoading &&

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

React Play Docs Issue highlighted in useGitHub for Contribution

Relevant log output

No response

Code of Conduct