Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /utils /esm /getValidReactChildren /getValidReactChildren.js
Download frontend/node_modules/@mui/utils/esm/getValidReactChildren/getValidReactChildren.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/utils/esm/getValidReactChildren/getValidReactChildren.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@mui/utils/esm/getValidReactChildren/getValidReactChildren.js
-
curl -L -o getValidReactChildren.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/utils/esm/getValidReactChildren/getValidReactChildren.js
327 Bytes
| import * as React from 'react'; | |
| /** | |
| * Gets only the valid children of a component, | |
| * and ignores any nullish or falsy child. | |
| * | |
| * @param children the children | |
| */ | |
| export default function getValidReactChildren(children) { | |
| return React.Children.toArray(children).filter(child => /*#__PURE__*/React.isValidElement(child)); | |
| } |