depscope
Packages
IntegrateAPI DocsCuratorBenchmarkCoverage
Sign inGet API access

Related on DepScope

Alternatives
  • @chakra-ui/counter— A React hook for managing counters
  • @react-hook/debounce— A React hook for debouncing setState and other callbacks
  • @react-hook/throttle— A React hook for throttling setState and other callbacks
More
  • All npm packages →
  • Breaking changes index →
  • Bug index →
  • AI hallucination corpus →
depscope/npm/use-optional-state

use-optional-state

npmv2.2.0

A React hook to implement components that support both controlled and uncontrolled props.

License MITpermissive4 versions1 maintainers2 deps392 weekly dl
amannn/react-hooks
49
/ 100
Health
use with caution

[email protected] low health (49/100) — consider alternatives

  • Moderate health score (49/100) — verify manually
Health breakdown0 – 100
10/25
maintenance
3/20
popularity
25/25
security
9/15
maturity
2/15
community
Vulnerabilities
0
none known

Bundle & TypeScript

📦

Bundle Size

0.5 KBminified
0.3 KB gzipped
2 direct dependencies
ESMside effects
🌟

TypeScript

10/10typed
bundled

Health History

Dependency Tree

License Audit

Dependencies (2)
tslibuse-constant
API access

Get this data programmatically — free, no authentication.

curl https://depscope.dev/api/check/npm/use-optional-state
More from npm
semverdebugansi-stylesminimatchbrace-expansionstrip-ansi
Browse all npm packages →

First published · 2022-08-30T07:01:31.400Z

Last updated · 2025-05-13T08:04:28.723Z

DepScope

Package intelligence for AI agents. 19 ecosystems.

Resources
API DocumentationHallucination BenchmarkFor EnterpriseSwagger / OpenAPIPopular PackagesCoverageAI Plugin SetupWatch the pitch (60s)
Legal
Legal hubPrivacy PolicyTerms of ServiceCookie PolicyAcceptable UseAttributionDPASub-processorsSecurityImprintContact中文
© 2026 Cuttalo srl — Italy · VAT IT03242390734Built for AI agents