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