Skip to content

FAQ

Frequently asked questions and answers.

The library provides a lightweight, reactive state management solution with minimal boilerplate. It’s ideal for small to medium-sized applications or as a building block for larger architectures.


Use the LocalStorageSystem or create a custom storage system.

import { atom, LocalStorageSystem } from '@reaxium/core';
const persistedAtom = atom('default', LocalStorageSystem('myKey'));

Yes! The library is framework-agnostic and can be used with any JavaScript environment.


How do I reset an atom to its initial value?

Section titled “How do I reset an atom to its initial value?”

Store the initial value and reset it when needed.

import { atom } from '@reaxium/core';
const initialValue = 0;
const counter = atom(initialValue);
const reset = () => counter.set(initialValue);