Xave custom UI library
npm install --save xave-ui-kit
import * as React from 'react'
import { GeofenceCountry, useGeofence } from 'xave-ui-kit'
const Example = () => {
const { loading, rejected } = useGeofence(GeofenceCountry.SINGAPORE);
if (loading) {
return (
<div>
Loaded
</div>
);
} else if (!loading && rejected) {
return (
<div>
Blocked Content
</div>
);
}
}
MIT © xave-finance
This hook is created using create-react-hook.