
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@alphacifer/react
Advanced tools
All React Utils for Alpha's projects.
import { useQuery, useCommand, type TQueryKey } from '@alphacifer/react/query';
import type { JSX.Element } from 'react';
import { getListUsers, updateUser } from './api';
const QK_FETCH_USERS: TQueryKey = 'qk_fetchUsers';
export function MyComponent(): JSX.Element {
const { data } = useQuery(
getListUsers,
[QK_FETCH_USERS, []],
{},
{
defaultValue: [],
}
);
const { mutate } = useCommand(updateUser);
return <div />;
}
import {
createStore,
type TCreateStoreReturn,
} from '@alphacifer/react/zustand';
const engines = ['Biome', 'Prettier'] as const;
type TWorker = (typeof engines)[number];
interface ISettingsProps {
indentWidth: number;
wrapLongLines: boolean;
}
interface IJsonFormatterDataProps {
raw: string;
worker: TWorker;
settings: ISettingsProps;
}
interface IJsonFormatterStateProps extends IJsonFormatterDataProps {
setRaw: (raw: string) => void;
setWorker: (worker: TWorker) => void;
setSettings: (settings: Partial<ISettingsProps>) => void;
}
export const jsonFormatterStore: TCreateStoreReturn<IJsonFormatterStateProps> =
createStore<IJsonFormatterStateProps>(
(set) => {
return {
raw: '',
worker: 'Biome',
settings: {
indentWidth: 2,
wrapLongLines: false,
},
setRaw(data) {
return set((state) => {
state.raw = data;
});
},
setSettings(data) {
return set((state) => {
Object.assign(state.settings, data);
});
},
setWorker(data) {
return set((state) => {
state.worker = data;
});
},
};
},
{
name: 'json-formatter-app',
},
);
FAQs
React Utils for Alpha's projects.
We found that @alphacifer/react demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.