]> git.cworth.org Git - lmno.games/commitdiff
Use an actual space not an   entity.
authorCarl Worth <cworth@cworth.org>
Sat, 6 Jun 2020 01:00:20 +0000 (18:00 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 6 Jun 2020 11:46:51 +0000 (04:46 -0700)
I didn't really want any non-breaking semantics here. I just wanted a
plain-old space but it wasn't obvious to me how to get it for some
reason. The answer is pretty simple: a string literal inside curly
braces.

tictactoe/tictactoe.jsx

index 46cee2a7f42e9f4bc3a7809e7d93b3855eb383ed..6a27a220453ab06e38a3abda72cbc372476dafd6 100644 (file)
@@ -310,7 +310,7 @@ class Game extends React.Component {
       <div key="game" className="game">
         <button className="inline"
                 onClick={() => this.join_team('X')}>Join Team X</button>
       <div key="game" className="game">
         <button className="inline"
                 onClick={() => this.join_team('X')}>Join Team X</button>
-        &nbsp;
+        {" "}
         <button className="inline"
                 onClick={() => this.join_team('O')}>Join Team O</button>
         <div>{status}</div>
         <button className="inline"
                 onClick={() => this.join_team('O')}>Join Team O</button>
         <div>{status}</div>