Download wp-calypso/client/dashboard/components/router-link-button/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/components/router-link-button/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/components/router-link-button/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/components/router-link-button/index.tsx
412 Bytes
| import { createLink } from '@tanstack/react-router'; | |
| import { Button } from '@wordpress/components'; | |
| import { ButtonProps } from '@wordpress/components/build-types/button/types'; | |
| import { forwardRef } from 'react'; | |
| function RouterLinkButton( props: ButtonProps, ref: React.Ref< HTMLAnchorElement > ) { | |
| return <Button ref={ ref } { ...props } />; | |
| } | |
| export default createLink( forwardRef( RouterLinkButton ) ); | |