react-nfc
v0.0.2
Published
A declarative react api for the web imperative one
Downloads
5
Readme
react-nfc
A declarative react api for the web imperative one
Install
npm install react-nfc
# or if you use yarn
yarn add react-nfc
Usage
import React from 'react'
import { useNfcRead } from 'react-nfc'
function Example() {
const nfc = useNfcRead()
return (
<div>
<div>Status: {nfc.status}</div>
<div>Data: {JSON.stringify(nfc.data)}</div>
</div>
)
}
License
MIT © fmilani