amplify-hooks
v1.0.4
Published
React hooks aws amplify
Downloads
6
Readme
amplify-hooks
Custom hooks for react and aws-amplify.
Installation
npm install amplify-hooks
Usage
const DataList = () => {
const { loading, data, error, refetch } = useGatewayGet(params)
if(loading) {
return (
<!-- Display loader -->
)
}
if(error) {
<!-- Display error message -->
}
return (
<!-- Display Data -->
)
}