Download slate/packages/slate-history/test/undo/insert_text/contiguous.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/packages/slate-history/test/undo/insert_text/contiguous.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/slate/packages/slate-history/test/undo/insert_text/contiguous.tsx
-
curl -L -o contiguous.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/slate/packages/slate-history/test/undo/insert_text/contiguous.tsx
327 Bytes
| /** @jsx jsx */ | |
| import { jsx } from '../..' | |
| import { cloneDeep } from 'lodash' | |
| export const run = editor => { | |
| editor.insertText('t') | |
| editor.insertText('w') | |
| editor.insertText('o') | |
| } | |
| export const input = ( | |
| <editor> | |
| <block> | |
| one | |
| <cursor /> | |
| </block> | |
| </editor> | |
| ) | |
| export const output = cloneDeep(input) | |