Skip to content

Commit

Permalink
remove return
Browse files Browse the repository at this point in the history
  • Loading branch information
brandly committed Jun 19, 2020
1 parent d08d127 commit bc1d42f
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,18 @@ const App = () => (
<div>
<h1>Tetris</h1>
<Tetris>
{({ HeldPiece, Gameboard, PieceQueue, points, linesCleared }) => {
{({ HeldPiece, Gameboard, PieceQueue, points, linesCleared }) => (
// Render it however you'd like
return (
<div>
<HeldPiece />
<div>
<HeldPiece />
<div>
<p>Points: {points}</p>
<p>Lines Cleared: {linesCleared}</p>
</div>
<Gameboard />
<PieceQueue />
<p>Points: {points}</p>
<p>Lines Cleared: {linesCleared}</p>
</div>
);
}}
<Gameboard />
<PieceQueue />
</div>
)}
</Tetris>
</div>
);
Expand Down

0 comments on commit bc1d42f

Please sign in to comment.