0.0.2 • Published 5 years ago

react-nfc v0.0.2

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

react-nfc

A declarative react api for the web imperative one

NPM JavaScript Style Guide

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