Skip to content

fmilani/react-nfc

Repository files navigation

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

About

A declarative react api for the web imperative one

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published