/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/components/diff-viewer/docs/example.jsx
23 строки
464 B
Griffith Chen
client/components: drop findDOMNode in section-nav; migrate docs-example defaultProps (React 19) (#111622)
12 июн 2026, 16:57
Не верифицирован
12 июн 2026, 16:57
547e460
Код
Авторство
О чём код?
import DiffViewer from '../index'; DiffViewer.displayName = 'DiffViewer'; const DiffViewerExample = ( { exampleCode = `<DiffViewer diff={ \`diff --git a/circle.yml b/circle.yml index 51455bdb14..bc0622d001 100644 --- a/circle.yml +++ b/circle.yml @@ -1,6 +1,6 @@ machine: node: - version: 8.9.4 + version: 8.11.0 test: pre: - ? | \` } />`, } ) => exampleCode; DiffViewerExample.displayName = 'DiffViewer'; export default DiffViewerExample;