Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /utils /legacy /usePreviousProps /usePreviousProps.js
Download frontend/node_modules/@mui/utils/legacy/usePreviousProps/usePreviousProps.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/utils/legacy/usePreviousProps/usePreviousProps.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@mui/utils/legacy/usePreviousProps/usePreviousProps.js
-
curl -L -o usePreviousProps.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/utils/legacy/usePreviousProps/usePreviousProps.js
255 Bytes
| 'use client'; | |
| import * as React from 'react'; | |
| var usePreviousProps = function usePreviousProps(value) { | |
| var ref = React.useRef({}); | |
| React.useEffect(function () { | |
| ref.current = value; | |
| }); | |
| return ref.current; | |
| }; | |
| export default usePreviousProps; |