CS-Notes/docs/_style/prism-master/tests/languages/jsx/issue1236.test
2018-12-19 14:09:39 +08:00

27 lines
511 B
Plaintext

<Child {...this.props}>
----------------------------------------------------
[
["tag", [
["tag", [
["punctuation", "<"],
["class-name", "Child"]
]],
["spread", [
["punctuation", "{"],
["punctuation", "..."],
["attr-value", "this"],
["punctuation", "."],
["attr-value", "props"],
["punctuation", "}"]
]],
["punctuation", ">"]
]]
]
----------------------------------------------------
Checks that spread can contain an object property.
See #1236.