Created
October 2, 2017 07:29
-
-
Save ysfzrn/526ba9cee0272c276db92b8e4bdebbeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<Board> | |
{snake.map((segment, i) => { | |
return <Segment key={segment.id} id={segment.id} x={segment.x} y={segment.y} />; | |
})} | |
<Food x={ gameStore.food.x } y={ gameStore.food.y }/> | |
</Board> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment