Download react-use/stories/useGeolocation.story.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/stories/useGeolocation.story.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-use/stories/useGeolocation.story.tsx
-
curl -L -o useGeolocation.story.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-use/stories/useGeolocation.story.tsx
427 Bytes
| import { storiesOf } from '@storybook/react'; | |
| import * as React from 'react'; | |
| import { useGeolocation } from '../src'; | |
| import ShowDocs from './util/ShowDocs'; | |
| const Demo = () => { | |
| const state = useGeolocation(); | |
| return <pre>{JSON.stringify(state, null, 2)}</pre>; | |
| }; | |
| storiesOf('Sensors/useGeolocation', module) | |
| .add('Docs', () => <ShowDocs md={require('../docs/useGeolocation.md')} />) | |
| .add('Demo', () => <Demo />); | |