Download slate/packages/slate-hyperscript/test/fixtures/element-custom.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/packages/slate-hyperscript/test/fixtures/element-custom.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/packages/slate-hyperscript/test/fixtures/element-custom.tsx
-
curl -L -o element-custom.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/packages/slate-hyperscript/test/fixtures/element-custom.tsx
311 Bytes
| /** @jsx jsx */ | |
| import { createHyperscript } from 'slate-hyperscript' | |
| const jsx = createHyperscript({ | |
| elements: { | |
| paragraph: { type: 'paragraph' }, | |
| }, | |
| }) | |
| export const input = <paragraph>word</paragraph> | |
| export const output = { | |
| type: 'paragraph', | |
| children: [ | |
| { | |
| text: 'word', | |
| }, | |
| ], | |
| } | |