diff --git a/src/printer.js b/src/printer.js index f3c46e4d..93a7b9ab 100644 --- a/src/printer.js +++ b/src/printer.js @@ -1101,7 +1101,7 @@ function genericPrintNoParens(path, options, print) { "<", path.call(print, "name"), concat(path.map(attr => concat([ " ", print(attr) ]), "attributes")), - n.selfClosing ? "/>" : ">" + n.selfClosing ? " />" : ">" ]) ); case "JSXClosingElement":