1.0.1 • Published 4 years ago

material-ui-qrcode-textfield v1.0.1

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

material-ui-qrcode-textfield

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save material-ui-qrcode-textfield

Usage

import React from 'react';
import QrcodeTextField from 'material-ui-qrcode-textfield';

const App = () => {
  const [value, setValue] = React.useState();
  const onChange = (event) => {
    const data = typeof event === 'object' && typeof event.target === 'object' ? event.target.value : event;
    setValue(data);
  };
  return <QrcodeTextField label="Qrcode" value={value} onChange={onChange} />;
}

export default App;

License

MIT © mingkin123