xave-ui-kit-test
v1.0.2-9
Published
Xave custom UI library
Downloads
5
Readme
xave-ui-kit
Xave custom UI library
Install
npm install --save xave-ui-kit
Usage
Geofence
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>
);
}
}
License
MIT © xave-finance
This hook is created using create-react-hook.