@cizar/react-unique-id

0.1.2 • Public • Published

react-unique-id

Installation

npm install @cizar/react-unique-id --save-dev

Usage

import React from 'react'
import uniqueId from '@cizar/react-unique-id'

const Input = ({ id, label, name, type, value, onChange }) => (
  <div>
    <label htmlFor={id}>{label}</label>
    <input id={id} type={type} value={value} onChange={onChange} />
  </div>
)

export default uniqueId(Input)

Readme

Keywords

Package Sidebar

Install

npm i @cizar/react-unique-id

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • cizar