UNPKG
usefloc
Version:
latest (0.1.4)
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
React Hook to use FLoC API <pre>yarn add usefloc</pre>
usefloc
/
README.md
19 lines
(16 loc)
•
285 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# useFLoC
React Hook to use FLoC API <pre>yarn
add
usefloc</pre>
## Example
```ts import *
as
React
from
'react'
; import { useFLoC }
from
'usefloc'
;
const
App = () => {
const
{id, version} = useFLoC();
return
( <div> id: {id}, version: {version} </div> ); }; ```