Download wp-calypso/client/lib/interval/interval.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 323 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/interval/interval.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/interval/interval.ts
-
curl -L -o interval.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/interval/interval.ts
323 Bytes
| import { FunctionComponent } from 'react'; | |
| import { TimeoutMS } from 'calypso/types'; | |
| import { useInterval } from './use-interval'; | |
| interface Props { | |
| onTick: () => void; | |
| period: TimeoutMS; | |
| } | |
| export const Interval: FunctionComponent< Props > = ( props ) => { | |
| useInterval( props.onTick, props.period ); | |
| return null; | |
| }; | |