From: Carl Worth Date: Sun, 28 Jun 2020 00:34:06 +0000 (-0700) Subject: Stop abusing the JavaScript back-tick syntax within JSX X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=commitdiff_plain;h=5e235932d1940d4849d2f3adbee33f6ecef4ed6b;ds=sidebyside 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. --- 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(', ')}
  • ); })}