Download node_modules/@tanstack/react-store/dist/useAtom.cjs from sitcod3/modul-s: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/react-store/dist/useAtom.cjs
- Command line
-
hf download hf://spaces/sitcod3/modul-s@c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/@tanstack/react-store/dist/useAtom.cjs
-
curl -L -o useAtom.cjs https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/react-store/dist/useAtom.cjs
532 Bytes
| const require_useSelector = require('./useSelector.cjs'); | |
| //#region src/useAtom.ts | |
| /** | |
| * Returns the current atom value together with a stable setter. | |
| * | |
| * This is the writable-atom convenience hook for components that need to both | |
| * read and update the same atom. | |
| * | |
| * @example | |
| * ```tsx | |
| * const [count, setCount] = useAtom(countAtom) | |
| * ``` | |
| */ | |
| function useAtom(atom, options) { | |
| return [require_useSelector.useSelector(atom, void 0, options), atom.set]; | |
| } | |
| //#endregion | |
| exports.useAtom = useAtom; | |
| //# sourceMappingURL=useAtom.cjs.map |