/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/tests/languages/jsx/issue1335.test
126 строк
3 KB
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
<Button onClick={(e) => this.setState({clicked: true})} /> <Component data={[ {id: 0, name: 'Joe'}, {id: 1, name: 'Sue'}, ]} /> <Component title={`${name}`} /> <Component title={`${name}'s page`} /> ---------------------------------------------------- [ ["tag", [ ["tag", [ ["punctuation", "<"], ["class-name", "Button"] ]], ["attr-name", ["onClick"]], ["script", [ ["script-punctuation", "="], ["punctuation", "{"], ["punctuation", "("], ["parameter", [ "e" ]], ["punctuation", ")"], ["operator", "=>"], ["keyword", "this"], ["punctuation", "."], ["function", "setState"], ["punctuation", "("], ["punctuation", "{"], "clicked", ["punctuation", ":"], ["boolean", "true"], ["punctuation", "}"], ["punctuation", ")"], ["punctuation", "}"] ]], ["punctuation", "/>"] ]], ["tag", [ ["tag", [ ["punctuation", "<"], ["class-name", "Component"] ]], ["attr-name", ["data"]], ["script", [ ["script-punctuation", "="], ["punctuation", "{"], ["punctuation", "["], ["punctuation", "{"], "id", ["punctuation", ":"], ["number", "0"], ["punctuation", ","], " name", ["punctuation", ":"], ["string", "'Joe'"], ["punctuation", "}"], ["punctuation", ","], ["punctuation", "{"], "id", ["punctuation", ":"], ["number", "1"], ["punctuation", ","], " name", ["punctuation", ":"], ["string", "'Sue'"], ["punctuation", "}"], ["punctuation", ","], ["punctuation", "]"], ["punctuation", "}"] ]], ["punctuation", "/>"] ]], ["tag", [ ["tag", [ ["punctuation", "<"], ["class-name", "Component"] ]], ["attr-name", ["title"]], ["script", [ ["script-punctuation", "="], ["punctuation", "{"], ["template-string", [ ["string", "`"], ["interpolation", [ ["interpolation-punctuation", "${"], "name", ["interpolation-punctuation", "}"] ]], ["string", "`"] ]], ["punctuation", "}"] ]], ["punctuation", "/>"] ]], ["tag", [ ["tag", [ ["punctuation", "<"], ["class-name", "Component"] ]], ["attr-name", ["title"]], ["script", [ ["script-punctuation", "="], ["punctuation", "{"], ["template-string", [ ["string", "`"], ["interpolation", [ ["interpolation-punctuation", "${"], "name", ["interpolation-punctuation", "}"] ]], ["string", "'s page`"] ]], ["punctuation", "}"] ]], ["punctuation", "/>"] ]] ] ---------------------------------------------------- Handles nested pairs of curly braces inside tag attribute. See #1335