Skip to content
Ilha
Esc
navigateopen⌘Jpreview
On this page

Tutorial: Atom

Declare a count with atom() and show it in JSX.

You declare reactive values with atom(). Reads during render subscribe the component. Writes rerun it.

Similar concepts

  • React: useState
  • Vue: ref()
  • Svelte: $state()

Was this page helpful?