Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@mui/utils/legacy/useOnMount/useOnMount.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 324 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40mui/utils/legacy/useOnMount/useOnMount.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/@mui/utils/legacy/useOnMount/useOnMount.js
-
curl -L -o useOnMount.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/94e32638a275d46bc1ba62feac204fcaaf313da4/frontend/node_modules/%40mui/utils/legacy/useOnMount/useOnMount.js
324 Bytes
| 'use client'; | |
| import * as React from 'react'; | |
| var EMPTY = []; | |
| /** | |
| * A React.useEffect equivalent that runs once, when the component is mounted. | |
| */ | |
| export default function useOnMount(fn) { | |
| /* eslint-disable react-hooks/exhaustive-deps */ | |
| React.useEffect(fn, EMPTY); | |
| /* eslint-enable react-hooks/exhaustive-deps */ | |
| } |