Download react-spring/docs/app/components/Widgets/WidgetSearch.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Widgets/WidgetSearch.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Widgets/WidgetSearch.tsx
-
curl -L -o WidgetSearch.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-spring/docs/app/components/Widgets/WidgetSearch.tsx
349 Bytes
| import { DocSearch } from '@docsearch/react' | |
| import { memo } from 'react' | |
| export const WidgetSearch = memo(() => { | |
| return ( | |
| <DocSearch | |
| appId={typeof window === 'undefined' ? '' : window.env.ALGOLIA_APP_ID} | |
| indexName="react-spring_beta" | |
| apiKey={typeof window === 'undefined' ? '' : window.env.ALGOLIA_API_KEY} | |
| /> | |
| ) | |
| }) | |