
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@alehechka/react-hooks
Advanced tools
[](https://www.npmjs.com/package/@alehechka/react-hooks)
A collection of useful hooks that I made for personal use, but feel free to include the package in your own projects or contribute! This is a Node.js package available through the npm registry.
You can install @alehechka/react-hooks
with the yarn add
command.
yarn add @alehechka/react-hooks
const [value, toggle, turnOn, turnOff] = useToggle(); // defaults to false
You can also give it another default initial state:
const [value, toggle, turnOn, turnOff] = useToggle(true); // defaults to true
This implementation of useToggle is an extension from Josh Comeau's implementation that includes some useful on/off functions.
👤 Adam Lehechka
Feel free open an issue on the issues page or a pull request in the repo on GitHub!
Give a ⭐️ if this project helped you!
Contributions, issues and feature requests are welcome!
FAQs
[](https://www.npmjs.com/package/@alehechka/react-hooks)
We found that @alehechka/react-hooks 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.