1.0.2-9 • Published 2 years ago

xave-ui-kit-test v1.0.2-9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

xave-ui-kit

Xave custom UI library

NPM JavaScript Style Guide

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.

1.0.2-9

2 years ago

1.0.2-8

2 years ago

1.0.2-6

2 years ago

1.0.2-5

2 years ago

1.0.2-4

2 years ago

1.0.2-3

2 years ago

1.0.2-2

2 years ago