
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Retoggle is a collection of React hooks which provides UI toggles to manipulate your component state from outside. Like Storybook Knobs. This library is inspired by ideas from Dan Abramov.
useLog() - Keeps track of a variable valueuseTextKnob() - Shows a text boxuseNumberKnob() - Shows a number boxuseBooleanKnob() - Shows a check boxuseRangeKnob() - Shows a slideruseRangesKnob() - Shows multiple slidersuseSelectKnob() - Shows a select boxuseObjectKnob() - Shows an object editoruseColorKnob() - Shows a color pickeruseTimemachine() - Shows a slider and tracks the state of a given variable and allows to travel back in timeThe value of state will be displayed in the inspector component.
import React, { useState } from "react";
import { Inspector, useLog } from "retoggle";
export default function Demo() {
const [state, setState] = useState({ value: 5 });
// logs your state to inspector
useLog("My state", state);
return (
<div>
<Inspector />
</div>
);
}
Preparing dev environment
yarn install to install dev dependenciesRunning and building the library
yarn start will start the dev server and expose the sample appyarn build will output the build artifact to ./lib folderDocs
docz:dev will start the docz development serverdocz:build will build the docsMIT
FAQs
UI controls as React Hooks to control your component state from outside
The npm package retoggle receives a total of 73 weekly downloads. As such, retoggle popularity was classified as not popular.
We found that retoggle 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.