
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
react-store-toolkit
Advanced tools
React Store Toolkit is a library heavily inspired by [Redux Toolkit](https://github.com/reduxjs/redux-toolkit) but for React `Context API` and `useReducer`.
React Store Toolkit is a library heavily inspired by Redux Toolkit but for React Context API and useReducer.
createStore(initialState, reducer, middlewareFn?, middlewareProps?):export declare function createStore<State, MiddlewareProps = undefined>(initialState: State, reducer: Reducer<State, AnyAction>, middlewareFn?: ((state: State, action: AnyAction, middlewareProps?: MiddlewareProps) => void)[], middlewareProps?: MiddlewareProps): {
useState: () => State;
useDispatch: () => React.Dispatch<AnyAction>;
StateProvider: React.FunctionComponent<Partial<State>>;
};
| returned object | description |
|---|---|
StateProvider | The context provider (React Element) that provides the store to all its children |
useState | Hook that returns the value of the state stored in the Provider |
useDispatch() | Hook that returns a dispatch function |
createSlice()Immer and your state updates need to return the newly created state.createReducer()Immer and your state updates need to return the newly created state.createAction()Examples are available in the Example directory
FAQs
React Store Toolkit is a library heavily inspired by [Redux Toolkit](https://github.com/reduxjs/redux-toolkit) but for React `Context API` and `useReducer`.
The npm package react-store-toolkit receives a total of 2 weekly downloads. As such, react-store-toolkit popularity was classified as not popular.
We found that react-store-toolkit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.