From 5e235932d1940d4849d2f3adbee33f6ecef4ed6b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 27 Jun 2020 17:34:06 -0700 Subject: [PATCH] Stop abusing the JavaScript back-tick syntax within JSX JSX already lets us implicitly combine adjacent string literals together so it's simpler to not use the JavaScript back-tick syntax but instead simply pop back to JSX when we need some literal string content. --- empathy/empathy.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 85738f3..044d4e0 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -1077,7 +1077,7 @@ class Game extends React.PureComponent { {state.scores.words.map(word => { return (
  • - {`${word.word}: ${word.players.join(', ')}`} + {word.word}: {word.players.join(', ')}
  • ); })} -- 2.43.0