Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-use-controllable-state

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use-controllable-state - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

0

dist/index.d.ts
import { useControllableState } from './useControllableState';
export { useControllableState };
export default useControllableState;
import { Dispatch, SetStateAction } from 'react';
export declare function useControllableState<T>(value: T | undefined, changeHandler: Dispatch<SetStateAction<T>> | undefined, initialValue: T | (() => T)): [T, Dispatch<SetStateAction<T>>];

2

package.json
{
"name": "react-use-controllable-state",
"version": "0.0.7",
"version": "0.0.8",
"description": "React hook for using controllable state",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -5,2 +5,6 @@ # react-use-controllable-state

Read more: https://medium.com/quick-code/writing-ui-components-with-optionally-controllable-state-86e396a6f1ec
# !!!DEPRECATED!!!
Please use [useControlledState](https://github.com/adobe/react-spectrum/blob/main/packages/%40react-stately/utils/src/useControlledState.ts) from `@react-stately/utils` instead. It's not a drop-in replacement since the signature is a little different.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc