Skip to content

Commit

Permalink
Making string presentation clearer by adding "quotes"
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Feb 18, 2016
1 parent eebce13 commit 64d6dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DOMify.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function transform (obj, fromRecur, comma) {

// strings
if (typeof obj === 'string') {
return React.createElement(tag, { style: styles.string }, obj, comma);
return React.createElement(tag, { style: styles.string }, `"${obj}"`, comma);
}
// booleans, null and undefined
else if (typeof obj === 'boolean' || obj === null || obj === undefined) {
Expand Down

0 comments on commit 64d6dde

Please sign in to comment.