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>
);
};