fix JSX literal children not being output correctly
This commit is contained in:
parent
a36c1b4a92
commit
6e4e11a365
@ -45,7 +45,7 @@ export function JSXElement(node, print) {
|
||||
this.indent();
|
||||
each(node.children, (child) => {
|
||||
if (t.isLiteral(child)) {
|
||||
this.push(child.value);
|
||||
this.push(child.value, true);
|
||||
} else {
|
||||
print(child);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user