A React state management library that enables direct mutation of state with automatic re-renders and reactive bindings.
Radioactive State is a React library that provides a deeply reactive state management hook (`useRS`). It solves the complexity of updating nested state in React by allowing direct mutation of state objects and arrays, automatically triggering re-renders without the need for setter functions or immutable updates. It also addresses common issues like stale state and closure problems found in traditional `useState`.
React developers building applications with complex state structures, especially those who want more intuitive state updates and better performance without relying on external state management libraries.
Developers choose Radioactive State for its simplicity in mutating state directly, performance gains over `useState`, and features like reactive bindings and props that reduce boilerplate. Its zero-dependency, lightweight nature makes it easy to integrate into existing projects.
☢ Make Your React App Truly Reactive!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Allows direct mutation at any level of state, automatically triggering re-renders without setter functions, as demonstrated in counter and array examples where state.count++ updates the UI.
Up to 25% faster than useState for complex states due to batched mutations and no need to create new state objects, with benchmarks cited in the README.
Eliminates stale state and closure issues common with useState, ensuring state is immediately updated after mutations, as shown in async increment examples.
Provides reactive bindings with $key syntax for inputs, checkboxes, and selects, reducing boilerplate code, illustrated in the form GIF and code samples.
Direct state mutation can make it harder to track changes and debug in complex applications, compared to immutable updates that provide clearer state snapshots.
As a newer library, it lacks extensive community resources, tooling, and integrations compared to established state managers like Redux or Zustand.
Relies on JavaScript Proxy, which may require polyfills for older browsers and adds complexity, though React typically targets modern environments.