Download slate/site/pages/examples/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/site/pages/examples/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/site/pages/examples/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/site/pages/examples/index.tsx
236 Bytes
| import { useEffect } from 'react' | |
| import { useRouter } from 'next/router' | |
| const Example = () => { | |
| const router = useRouter() | |
| useEffect(() => { | |
| router.replace(`/examples/richtext`) | |
| }) | |
| return null | |
| } | |
| export default Example | |