Skip to content

tabone/use-dom-id

Repository files navigation

use-dom-id

goat

React hook for using a unique DOM ID

Build Status codecov npm version License: MIT

Click Here For Demo


Install

NPM

npm install --save use-dom-id

Yarn

yarn add use-dom-id

Usage

const useDOMID from 'use-dom-id'

const id = useDOMID('select')

image