getting started
first things first
atom.io
owes its existence to Recoil.
The Recoil tutorial is generally applicable to atom.io
, as long as keep in mind that
atom.io
reimplements the model ofatom
andselector
directly from Recoil.- Like Recoil,
atom.io
is great in React apps, but - Unlike Recoil,
atom.io
is not bound to React.- You can use
getState
andsetState
anywhere, not just in React components.
- You can use
transaction
is its own thing inatom.io
and it's a stable part of the API