A memory game with React

During Christmas I got a little bit bored so I spent some time creating a simple memory game with React, JavaScript and a set of old nature photographs of mine. I implemented two different versions that can be fetched from GitHub:

  1. Using the states in the React components for the game logic:
  2. Using Redux as state container:

Try them out, check out the code and see which version you prefer (you’re likely to not favour any of the versions, but anyway…). I prefer the Redux version as it made the game logic testable.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s