react-nfc

0.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-nfc

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

16.7 kB

Total Files

6

Last publish

Collaborators

  • fmilani