Last active
April 22, 2024 21:08
-
-
Save PaulieScanlon/e482515597d6ac9c2fabbcf4dbfe32e4 to your computer and use it in GitHub Desktop.
Example of state diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/state/index.ts | |
import { atom } from 'jotai'; | |
export const countAtom = atom(0); | |
+ export const objectAtom = atom({ | |
+ foo: 'bar', | |
+ test: true, | |
+ }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment