
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@accessible/use-id
Advanced tools
A React hook that creates unique deterministic IDs to facilitate WAI-ARIA and server rendering
npm i @accessible/use-id
Creates unique deterministic IDs to facilitate WAI-ARIA and server rendering. Forked from @reach/auto-id.
import useId from '@accessible/use-id'
const Component = () => {
const id = useId()
return <div id={id} />
// <div id='A:1'>
}
A hook that returns a unique, but deterministic ID once per component
Argument | Type | Default | Required? | Description |
---|---|---|---|---|
fallbackId | string | null | 0 | false | undefined | No | Allows you to provide your own id as a fallback |
prefix | string | 🅰 | No | Allows you to provide a prefix for the id to prevent collisions with other auto id libs |
This library is a fork of @reach/auto-id
Reach UI doesn't use real semantic versioning (each of their packages updates versions at the same time regardless of
changes to individual packages... nonsense) so it's possible (and annoyingly so) that you could easily wind up with duplicate
version of the auto-id
package in your bundle. Lastly, the Reach library throws super annoying warnings
in SSR because it uses useLayoutEffect
. This library uses @react-hook/passive-layout-effect
to avoid that.
MIT
FAQs
A React hook that creates unique deterministic IDs to facilitate WAI-ARIA and server rendering
We found that @accessible/use-id demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.