Snake Game - React

Basic snake game in React. Some rough edges, happy to have feedback.


Requested feedback

I struggled with not being able to read state within setInterval, wondering if there's a better way to do this. Also didn't find a good way to prevent going backwards into yourself and losing that way.

Comments

You must be signed in to post a comment

Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.