Socket
Book a DemoInstallSign in
Socket

@react-comfy/hooks

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-comfy/hooks

Handy hooks.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@react-comfy/hooks

Handy hooks.

Installation

yarn add @react-comfy/hooks
# or
npm i @react-comfy/hooks

Usage

Import hooks and use them in your components.

@react-comfy/hooks is transpiled to ES2015. If you're targeting ES5, use @react-comfy/hooks/esm/es5 (ESModule) or @react-comfy/hooks/cjs/es5 (CommonJS) instead.

// Example usage of useId
import * as React from 'react'
import { useId } from '@react-comfy/hooks'

export const MyComponent: React.FC = () => {
  const labelId = useId('my_component_label__')

  return (
    <div>
      <span id={labelId}>Description for input</span>
      <input aria-labelledby={labelId} />
    </div>
  )
}

FAQs

Package last updated on 18 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts