Preserve whitespace in JSXExpressionContainer StringLiteral children - fixes T7243

This commit is contained in:
Eric O'Connell
2016-03-24 20:20:15 -07:00
parent 4c371132ae
commit aef82d190b
3 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1 @@
<button data-value={"a value\n with\nnewlines\n and spaces"}>Button</button>;

View File

@@ -0,0 +1,5 @@
React.createElement(
"button",
{ "data-value": "a value\n with\nnewlines\n and spaces" },
"Button"
);