minimal state management package for react/next

  • i like minimal stuff

states are called “atoms”

seems to be a replacement for redux ( atpit idk what that is / does )

you can set global state and use them throughout your app

obv very helpful, since saving state is very important across components and pages, so this enables that


usage:

  • has a hook called useAtom
  • has a function called { atom } which you import and set default state to
  • export the atom to be used everywhere else
    • example does this in a .ts file seperated out from the ui stuff
  • mutating state looks exactly like useState