usefloc
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

useFLoC

React Hook to use FLoC API

yarn add usefloc

Example

import * as React from 'react';
import { useFLoC } from 'usefloc';

const App = () => {
  const {id, version} = useFLoC();
  return (
    <div>
      id: {id}, version: {version}
    </div>
  );
};

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i usefloc

    Weekly Downloads

    9

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    193 kB

    Total Files

    17

    Last publish

    Collaborators

    • catminusminus